winterbe / jest-teamcity-reporter

Teamcity Reporter for Jest Unittest Results
https://www.npmjs.com/package/jest-teamcity-reporter
Other
50 stars 23 forks source link

jest --coverage support #14

Closed ghost closed 7 years ago

winterbe commented 7 years ago

Jest coverage creates a HTML report in the project directory. I'm not entirely sure but iirc you can create custom report tabs in teamcity build configs to show that page.

Igor Pelekhan notifications@github.com schrieb am Do. 29. Juni 2017 um 12:09:

Hi,

Any Idea how to output coverage data to team city? Right now it only outputs the number of tests passed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/winterbe/jest-teamcity-reporter/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdmqXCL-xACZINMouFs3d3U8dD-1teDks5sI3fMgaJpZM4OJF7s .

isakb commented 7 years ago

The HTML report is good for detailed analysis, but some other Teamcity reporters support generating coverage in a format that TeamCity understands, which is useful to have similar views in TeamCity:

image

image

It would be awesome to have this built-in to this reporter too.

isakb commented 7 years ago

Here is an example of how such a reporter can look for mocha: https://github.com/iageengineering/nodejs-mocha-teamcity-reporter/blob/master/index.js

isakb commented 7 years ago

Thanks @ipelekhan, I also totally missed that until you pointed it out. It works for me too.

an83 commented 6 years ago

Found this link helpful in setting up front-end coverage in teamcity https://blog.jetbrains.com/teamcity/2017/08/build-react-apps-with-teamcity/ coverage