devchat
devchat copied to clipboard
[BetaTest] Provide a "preview test coverage" while providing test case suggestions
我觉得给出测试点选项那个功能特别厉害。有没有可能进一步延伸,做一个测试覆盖预览的功能,在用户真正执行前,就能对我们给出的测试用例所覆盖的行数+逻辑分支这两个比较重要的点预先给出结果。 初衷是,一些用户的代码库基建不一定那么完善,可能都没有在CI里加上测试覆盖报告的step。而这一功能能比较直白、具象的给出这一概念,引导用户关注这一数据。 个人体验,那个测试函数的选项有些接近condition coverage了。
I think the function that provides test point options is particularly powerful. Is it possible to further extend it to provide a preview of test coverage? Before the user actually executes, the two important points of the lines covered by the test cases we provide + the logic branch are given in advance. The original intention is that the basic construction of some users' code libraries may not be so perfect, and they may not have added a test coverage report step in the CI. This function can give this concept in a straightforward and concrete way, guiding users to pay attention to this data.