1
我正在使用Circle CI中的karma对我的angularjs源代码运行单元测试。 所有工作正常,但我无法显示测试失败。在测试总结我得到这样的警告它说,使用Karma在Circle CI中显示测试失败报告
设置您的测试运行,以输出的JUnit风格的XML
这里是我的circle.yml文件:
test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- karma start tests/my.conf.js --single-run --reporters junit
这里是我的人缘的conf文件,在那里我有junit的配置:
junitReporter: {
outputDir: '../$CIRCLE_ARTIFACTS/',
outputFile: 'test-results.xml'
},