Package com.spertus.jacquard.coverage
Class CodeCoverageTester
java.lang.Object
com.spertus.jacquard.common.Tester
com.spertus.jacquard.coverage.CodeCoverageTester
A grader that uses Jacoco to measure code coverage of tests.
-
Constructor Summary
ConstructorDescriptionCodeCoverageTester
(Scorer scorer, Class<?> classUnderTest, Class<?> testClass) Creates a code coverage tester with a default name.CodeCoverageTester
(String name, Scorer scorer, Class<?> classUnderTest, Class<?> testClass) Creates a code coverage tester. -
Method Summary
-
Constructor Details
-
CodeCoverageTester
Creates a code coverage tester. The result depends on thescorer
and how much of the class under test is covered by the test class.- Parameters:
name
- the namescorer
- the scorerclassUnderTest
- the class under testtestClass
- the test class
-
CodeCoverageTester
Creates a code coverage tester with a default name. The result depends on thescorer
and how much of the class under test is covered by the test class.- Parameters:
scorer
- a scorer, which converts the outcome to a point valueclassUnderTest
- the class under testtestClass
- the test class
-
-
Method Details