entitlementcard icon indicating copy to clipboard operation
entitlementcard copied to clipboard

Backend test coverage report

Open seluianova opened this issue 5 months ago • 3 comments

Short description

I suggest applying the kover plugin to be able to build test coverage reports in the backend. It allows you to see the test coverage per line of code like this: image

Side effects

This creates a bit of clutter in the circle ci artifacts. Alternatives to the clutter would be:

  • attach all files as an archive, but it would require an additional download/unzip action to view the report
  • connect additional tools to upload and view reports there (for example, CMS uses Code Climate: https://codeclimate.com/github/digitalfabrik/integreat-cms/code)
  • do not generate a report in ci, use only locally

Testing

  • build the report locally: ./gradlew koverHtmlReport or
  • view in circleci: image

Resolved issues

n/a

Additional info

Our current test coverage is 31.4741% (per line)

seluianova avatar Sep 03 '24 13:09 seluianova