我正在使用nightwatch
基于 selenium 的测试,但是当我使用 时nyc nightwatch
,它只报告测试代码及其 100% 的覆盖率。这是我现在的主要障碍。我如何获得保险?基本上,我希望最终将其作为 Jenkins CI 的报告。
此外,我还想用我正在使用的 UT 进行测试jest
。通常,"test": "jest --coverage"
将正确列出所有测试代码的覆盖率。所以当我给它时nyc npm run test
,它会给我同样的覆盖面,这很好。但是当我只用 运行时nyc jest
,它会返回 100% 的覆盖率jest.config.js
!!
我没有mocha
或之grunt
类的。