【发布时间】:2015-10-29 07:14:59
【问题描述】:
【问题讨论】:
-
一般来说,你需要一些能以 xUnit.xml 格式输出的东西——this sample project on Github 正是这样做的,但不能让它适用于最新版本的 Jest。
标签: node.js bamboo jestjs grunt-jest gulp-jest
【问题讨论】:
标签: node.js bamboo jestjs grunt-jest gulp-jest
安装这个
https://www.npmjs.com/package/jest-junit
将此添加到您的 jest.config.file 中
"reporters": [
"default",
["jest-junit", { outputName: "junitreport.xml" }]
]
在竹子上使用junit解析器,配置它以这种方式查找文件
**/junitreport.xml
【讨论】: