/jacoco

:microscope: Java Code Coverage Library

Primary LanguageJavaOtherNOASSERTION

JaCoCo Java Code Coverage Library

Build Status Build status Maven Central

JaCoCo is a free Java code coverage library distributed under the Eclipse Public License. Check the project homepage for downloads, documentation and feedback.

Please use our mailing list for questions regarding JaCoCo which are not already covered by the extensive documentation.

Note: We do not answer general questions in the project's issue tracker. Please use our mailing list for this.


Ability For Diff

Added the ability to report a java-code-diff coverage, You only need to implement internal methods as needed.

DiffClassRegistry

    public static List<MethodInfo> getClassMethods(String className) {
        return classMethods.get(className);
    }

    public static int[] getClassLines(String className) {
        return ...;
    }

demo: