melink14/rikaikun

Setup testing code coverage reporting and tracking

Closed this issue · 5 comments

This is useful to ensure bare minimum testing coverage going forward:

  • Karam has a plugin using Instanbul: https://github.com/karma-runner/karma-coverage
  • codecov.io has free for open source coverage reporting but not sure how instrumentation works or if it's better than instanbul plus github action.

https://coveralls.io/ also exists I guess!

With @web/test-runner, coverage report is generated with --coverage flag. There are some errors now though the final output seems mostly correct. (Tracking at modernweb-dev/web#1549)

In the html report it does seem to count all comment lines as covered which is a bit strange.

Currently integrated with codecov to track and report on teste coverage.

Fixed by #605