-
Task
-
Resolution: Fixed
-
Minor
-
None
What should be tested here?
For the HealthReportBuilder a test class already exists. In this test class, the method
computeHealth(final int counter, final AnnotationProvider result)
is tested with 100% coverage. It computes the healthiness of a build based on the specified counter.
The aim of this task is to test the whole functionallity of the builder, which includes the method
computeHealth(final AnnotationProvider result)
It computes the healthiness of a build based on the specified result.
SUT is io.jenkins.plugins.analysis.core.quality.HealthReportBuilder. The deprecated class hudson.plugins.analysis.core.HealthReportBuilder and the associated test should not be touched.
I also updated the branch so that this test does not require Mockito, i.e. now the method
should be tested.
You can reuse (i.e. copy) some portions of the old test if that makes sense.