Show untested methods / uncovered code ?
已回答
Is there a way to simply list and "annotate" with a message or icon all untested methods in the code ?
I've stumbled upon old plugins that don't seem to work anymore, and I'm not sure how to use the "Run with Coverage" feature (I'mreading docs about this)
Any idea ?
Thanks
请先登录再写评论。
Ok, it seems that when you "Run with Coverage" and then stop execution, untested lines are marked with a red band in the editor ... but it marks red lines in methods I did write tests for, so ... ?
Edit : so, okay, I understand a bit better how it works now that I found the right page in the docs https://www.jetbrains.com/help/idea/running-test-with-coverage.html#
But if you have better tools, I'm curious to know them !
Hello Nicolas,
As you correctly found the Code Coverage tool helps you to see the code executed during the tests run. In case you face any difficulties while tool using, please feel free to ask.