Auto Code coverage in CI/CD
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.
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
- Ruby: SimpleCov
- PHP: Clover
- Go: Cover
- Python: CoveragePy
- Java: Cobertura and Jacoco
- Swift: Cobertuna and gcov (generated by SwiftCov e.g.)
- C/C++: gcov
- Scala: Cobertura