jest-junit:创建兼容的junit xml文件的Jest报告程序

时间:2021-05-02 13:11:51
【文件属性】:
文件名称:jest-junit:创建兼容的junit xml文件的Jest报告程序
文件大小:95KB
文件格式:ZIP
更新时间:2021-05-02 13:11:51
nodejs javascript jest junit jest-junit 笑话 创建兼容的junit xml文件的Jest报告程序 注意:从jest-junit 11.0.0开始,需要NodeJS> = 10.12.0。 安装 yarn add --dev jest-junit 用法 在您的jest配置中,添加以下条目: { " reporters " : [ " default " , " jest-junit " ] } 然后只需运行: jest 对于您的持续集成,您可以简单地执行以下操作: jest --ci --reporters=default --reporters=jest-junit 用作testResultsProcessor 在您的jest配置中,添加以下条目: { " testResultsProcessor " : " jest-junit " } 然后只需运行: jest 对于您的持续集成,您可以简单地执行以
【文件预览】:
jest-junit-master
----.travis.yml(171B)
----index.js(3KB)
----package.json(747B)
----constants()
--------index.js(1KB)
----__tests__()
--------buildJsonResults.test.js(15KB)
--------getOptions.test.js(2KB)
--------testResultProcessor.test.js(2KB)
--------__snapshots__()
--------lib()
----jest.config.js(477B)
----LICENSE(11KB)
----__mocks__()
--------no-failing-tests.json(1KB)
--------test-with-console-output.json(3KB)
--------failing-import.json(2KB)
--------empty-suite.json(2KB)
--------failing-tests.json(4KB)
--------multi-project-no-failing-tests.json(2KB)
--------failing-compilation.json(3KB)
----integration-tests()
--------reporter()
--------testResultsProcessor()
----junitProperties.js(81B)
----.gitignore(23B)
----README.md(8KB)
----yarn.lock(169KB)
----utils()
--------buildJsonResults.js(8KB)
--------getOptions.js(2KB)
--------replaceRootDirInPath.js(434B)

网友评论