-
Improvement
-
Resolution: Fixed
-
Minor
For the refactored code of the Code Coverage API Plugin no integration tests are available. We need integration tests for freestyle jobs and pipelines that cover the following areas:
- Start a job with
o 0 input files
o 1 jacoco file
o 2 jacoco files - Start the job with
o 0 input files
o 1 cobertura file
o 2 cobertura files - Start the job with
o 1 cobertura and 1 jacoco files - 0 Reports fail vs. ok
- Quality Gates (the existing ones, not our refactoring)
- Health Reporting
- Fail build if coverage decreases
- Skip publishing of checks
- Source Code rendering and copying
- Delta Computation vs. Reference Build
- Report aggregation
- Agent in Docker
For Pipelines there are additional topics available:
- Declarative Pipeline support
- Multiple invocations of step (no tag set)
- Multiple invocations of step (tag set)
You can also have a look at the existing tests of the old model in the class CoveragePublisherPipelineTest . These tests currently handle pipelines only and do not verify the created action (they just verify the logging statements in the job).