-
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.
[JENKINS-50066] Unit Test for HealthReportBuilder
Epic Link |
New:
|
Rank | New: Ranked lower |
Rank | New: Ranked higher |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | Original: Ulli Hafner [ drulli ] | New: Alexandra Wenzel [ loelala ] |
Description |
New:
*What should be tested here? __* For the HealthReportBuilder a test class already exists. In this test class, the method {code:java} computeHealth(final int counter, final AnnotationProvider result) {code} is tested with 100% coverage. The aim of this task is to test the whole functionallity of the builder, which includes the method {code:java} computeHealth(final AnnotationProvider result) {code} |
Description |
Original:
*What should be tested here? __* For the HealthReportBuilder a test class already exists. In this test class, the method {code:java} computeHealth(final int counter, final AnnotationProvider result) {code} is tested with 100% coverage. The aim of this task is to test the whole functionallity of the builder, which includes the method {code:java} computeHealth(final AnnotationProvider result) {code} |
New:
*What should be tested here?* For the HealthReportBuilder a test class already exists. In this test class, the method {code:java} computeHealth(final int counter, final AnnotationProvider result) {code} is tested with 100% coverage. The aim of this task is to test the whole functionallity of the builder, which includes the method {code:java} computeHealth(final AnnotationProvider result) {code} |
Description |
Original:
*What should be tested here?* For the HealthReportBuilder a test class already exists. In this test class, the method {code:java} computeHealth(final int counter, final AnnotationProvider result) {code} is tested with 100% coverage. The aim of this task is to test the whole functionallity of the builder, which includes the method {code:java} computeHealth(final AnnotationProvider result) {code} |
New:
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 {code:java} public HealthReport computeHealth(final AnalysisResult result) {code} should be tested. |
Description |
Original:
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 {code:java} public HealthReport computeHealth(final AnalysisResult result) {code} should be tested. |
New:
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 |https://github.com/jenkinsci/analysis-core-plugin/commit/85f967253db5521b766f303a294a35ead8772230] so that this test does not require Mockito, i.e. now the method {code:java} public HealthReport computeHealth(final AnalysisResult result) {code} should be tested. |
Description |
Original:
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 |https://github.com/jenkinsci/analysis-core-plugin/commit/85f967253db5521b766f303a294a35ead8772230] so that this test does not require Mockito, i.e. now the method {code:java} public HealthReport computeHealth(final AnalysisResult result) {code} should be tested. |
New:
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 |https://github.com/jenkinsci/analysis-core-plugin/commit/85f967253db5521b766f303a294a35ead8772230] so that this test does not require Mockito, i.e. now the method {code:java} public HealthReport computeHealth(final AnalysisResult result) {code} should be tested. You can reuse (i.e. copy) some portions of the old test if that makes sense. |