Auto Code coverage in CI/CD
Description
Code coverage is important to understand how much of your code can be tested automatically. If the coverage is near to 100%, automated unit tests are reaching the goal, otherwise it means they may miss important portions of the applications.
We already support parsing code coverage values from the raw output of the job, but we can do even more.
Proposal
Detect the language and the tests that the application has, and automatically run the related tool to generate a coverage report.
After that, we can run the Code Climate Test Reporter to convert reports into a common format and show it in the UI.
This is the list of tools/languages supported by cc-test-reporter
:
- Ruby: SimpleCov
- JavaScript: lcov (generated by Istanbul e.g.)
- PHP: Clover
- Go: Cover
- Python: CoveragePy
- Java: Cobertura and Jacoco
- Swift: Cobertuna and gcov (generated by SwiftCov e.g.)
- C/C++: gcov
- Scala: Cobertura
Edited by Fabio Busatto