Javascript mocha phantomjs xunit reporter和文件输出不工作

Javascript mocha phantomjs xunit reporter和文件输出不工作,javascript,testing,phantomjs,mocha.js,mocha-phantomjs,Javascript,Testing,Phantomjs,Mocha.js,Mocha Phantomjs,使用 $mocha phantomjs-R xunit-f outputFile.xml myPage.html ---->这将以xml格式生成控制台输出,但不会写入输出文件 另一方面: $mocha phantomjs-R json-f outputFile.json myPage.html ----->这正如预期的那样工作。好的,这件事之前已经作为mocha phantomjs的github回购协议的一部分解决了。这里是链接

使用 $mocha phantomjs-R xunit-f outputFile.xml myPage.html

---->这将以xml格式生成控制台输出,但不会写入输出文件

另一方面:

$mocha phantomjs-R json-f outputFile.json myPage.html


----->这正如预期的那样工作。

好的,这件事之前已经作为mocha phantomjs的github回购协议的一部分解决了。这里是链接