Open Kirinfm opened 5 years ago
jest-html-reporters 是一个基于 jest 生成 html 报表的工具
selenium-side-runner 的测试报告是基于 jest 进行实现的, 详见 index.js
selenium-side-runner
由于官方未向外暴露出自定义配置 jest 属性,所以需要对 index.js#L204 和 index.js#L211 进行处理。
增加属性
jestConfiguration: { reporters: ['default', 'jest-junit', ["jest-html-reporters", { "publicPath": `${outputDirectory}/html-report`, "filename": `${project.name}.html`, "expand": true }]] },
即可。
导出的报告样式如下:
jest-html-reporters
selenium-side-runner
的测试报告是基于 jest 进行实现的, 详见 index.js由于官方未向外暴露出自定义配置 jest 属性,所以需要对 index.js#L204 和 index.js#L211 进行处理。
增加属性
即可。
导出的报告样式如下: