Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i get code coverage of test from JUnit 5?

Is it possible to get code coverage for a test (lines of code which test goes through) with JUnit 5 API? Or it's possible to get code coverage with IntelliJ Idea API? Code coverage info needs to be callable from code.

Thanks for help

like image 355
William Brach Avatar asked Nov 26 '25 21:11

William Brach


1 Answers

William - You may use JaCoCo, Cobertura or similar tools to get the code coverage. Even some IDE like IntelliJ IDEA has code coverage plugins

like image 79
Santhosh Urumese Avatar answered Nov 28 '25 12:11

Santhosh Urumese



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!