![](https://img-blog.csdnimg.cn/img_convert/703b0ab1769455d5d59d2fc637faa6fa.png)
代码覆盖率和测试覆盖率
If you’re aiming for test-driven development, you need to make sure that your code is getting properly covered by tests as you go. Originally released with 2019.3, the Code Coverage preview package helps you make sure you haven’t missed anything by providing you a birds-eye visual overview of your code.
如果您打算进行测试驱动的开发,则需要确保测试过程中正确覆盖了代码。 最初与2019.3一起发布的代码覆盖率预览包通过为您提供代码的鸟瞰图概述来帮助您确保没有错过任何内容。
When used with the Test Runner, the Code Coverage package shows you which lines of your code are getting tested, in addition to whether the tests have passed or failed. In version 0.3.0-preview with Unity 2020.1 beta, we’ve added several improvements.
当与 Test Runner一起使用时 ,“代码覆盖率”包将显示