Java code coverage tool that supports source code exclusion
•
Java
I currently use clover to measure the code coverage of Java code One feature I rely on is the ability to exclude arbitrary code segments from coverage reports:
///CLOVER:OFF because this case is simpler to verify by code read if (lFile.isFile() && lFile.getName().endsWith(FILE_EXTN) && !lFile.delete()) { throw new IOException("delete() Failed for: " + lFile); } ///CLOVER:ON
I find this exclusion makes it easier to focus on testing interesting logic while still achieving 100% code coverage
Are there other Java code coverage tools (free or paid) that support this fine-grained exclusion? The whole course or the whole method is not good enough
Note: I am investigating and adding content suitable for jacoco (issue #14)
Solution
The following is an open source java code coverage tool These may help you
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码