Testing --运行测试目录时的xunit输出

Testing --运行测试目录时的xunit输出,testing,casperjs,ui-automation,Testing,Casperjs,Ui Automation,这里有一个类似的问题: 当执行单个.js文件时,当我使用casperjs test/path/to/test/files触发脚本时,链接问题的答案会起作用,然后文件夹中的多个测试套件文件会依次执行,当发生这种情况时--xunit参数中的文件名不会写入。有什么方法可以做到这一点吗?我无法用CasperJS 1.1-beta3+PhantomJS 1.9.7或CasperJS current master+PhantomJS 2.0.1重现您的问题。也许您忘记指定文件名了--xunit=@Artjo

这里有一个类似的问题:


当执行单个.js文件时,当我使用casperjs test/path/to/test/files触发脚本时,链接问题的答案会起作用,然后文件夹中的多个测试套件文件会依次执行,当发生这种情况时--xunit参数中的文件名不会写入。有什么方法可以做到这一点吗?

我无法用CasperJS 1.1-beta3+PhantomJS 1.9.7或CasperJS current master+PhantomJS 2.0.1重现您的问题。也许您忘记指定文件名了<代码>--xunit=@ArtjomB。这是我正在使用的命令casperjs test--xunit=/home/vatsala/sample\u folder/test\u output.xml casper\u tests/sample\u test/test。js@ArtjomB. 当我以casperjs test--xunit=/home/vatsala/sample\u folder/test\u output.xml的形式运行上述命令时,casper\u tests/sample\u test/我没有看到输出被写入给定的文件。此处指定的示例文件夹名包含>1.js文件,其中包含TestsName问题,不涉及路径或多个脚本。有一个运行多个测试的脚本(Test.js)。没有来自--xunit的输出文件。命令:
casperjs--log level=debug--xunit=log.xml test.js