Teamcity + NYC + Istanbul - Generates a Coverage Report

I try to create a test report in teamcity every time it is created. I researched several methods and ended up finding a reporter for the Istanbul national team: teamcity

Now I am trying to integrate it into teamcity, but I have not found any instructions.

0
source share
1 answer

All you have to do is add a target scriptin package.jsonthat the reporter uses:

"script": {
  ...
  "coverage:teamcity": "nyc --reporter=teamcity mocha ...etc..."
  ...
}

Then in the build step just call it via the command line npm run coverage:teamcity

Teamcity will automatically analyze the output and generate a coverage summary for you.

+1
source

All Articles