integrate test coverage from js tests into heptapod
In heptapod/gitlab we can integrate the test coverage in the diff like this:
We already do this for python, let's do this for javascript.
Quoting the documentation of gitlab we need to use a framework like "istanbul" for that.
Then we need to write something like that in the javascript job:
test:
script:
- npm install
- npx nyc --reporter cobertura mocha
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml