发布于 2013-10-07 07:27:56
你可以使用我的HTML报表插件:
https://github.com/matthias-schuetz/karma-htmlfile-reporter
只需通过"npm install karma-htmlfile-reporter -g“安装并在配置中添加一些行即可。
reporters: ['progress', 'html'],
htmlReporter: {
outputFile: 'tests/units.html'
}HTML报告器将生成一个您可以在浏览器中查看的HTML文件。
发布于 2013-07-04 19:58:59
您可以在配置中指定输出文件,如下所示:
junitReporter = {
outputFile: 'reports/test-results.xml'
};然后输出文件为XML格式。
https://stackoverflow.com/questions/17469614
复制相似问题