随着代码集成越来越多,尤其大家对单测质量和覆盖率, 大家在 CI 里寻找错误的测试用例似乎非常麻烦。
其实有网友也有同样的需求:
Print list of failed tests at the end of test run
这里面有个非常天才的小伙子,直接来了一个
npx jest 2>&1 | grep '●'
Jest 失败的测试用例有个 ● 前缀!!!

为什么我比较喜欢这种,因为不需要更改配置,而且直接可以在网页浏览器搜索 '●'

随着代码集成越来越多,尤其大家对单测质量和覆盖率, 大家在 CI 里寻找错误的测试用例似乎非常麻烦。
其实有网友也有同样的需求:
Print list of failed tests at the end of test run
这里面有个非常天才的小伙子,直接来了一个
npx jest 2>&1 | grep '●'
Jest 失败的测试用例有个 ● 前缀!!!
为什么我比较喜欢这种,因为不需要更改配置,而且直接可以在网页浏览器搜索 '●'