Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们刚刚开始在工作中使用 Mocha 和 Karma 进行单元测试。我们只有不到 100 个测试,必须筛选所有通过的测试才能找到失败的测试已经很麻烦了。我无法想象当我们进行数千次测试时会是什么样子。有没有办法让它不显示通过的测试?
您可以更改测试报告器,点报告器应该是更紧凑的表示:
https://mochajs.org/#reporters