Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can output from JavaScript coverage tool Istanbul be published through TeamCity?

Is it possible to somehow publish reports from the JavaScript coverage analysis tool Istanbul through TeamCity? That is to say, I want to integrate these results with TeamCity's coverage reporting facilities.

like image 973
aknuds1 Avatar asked Apr 18 '13 22:04

aknuds1


People also ask

How do I get the code coverage information displayed in TeamCity?

To get the code coverage information displayed in TeamCity for the supported tools, you need to configure it in the dedicated section of a build runner's settings page. The following build runners include code coverage support: Note that currently the Maven2 runner supports only IntelliJ IDEA and JaCoCo coverage engines.

Can TeamCity be integrated with other reporting tools?

TeamCity can also be integrated with external reporting tools. Code coverage is a number of metrics that measure how your code is covered by unit tests. TeamCity supports the following coverage engines out of the box: See how to import reports or coverage results from other tools.

How does Istanbul work with JavaScript?

JavaScript test coverage made simple. How Istanbul works Istanbul instruments your ES5 and ES2015+ JavaScript code with line counters, so that you can track how well your unit-tests exercise your codebase. The nyccommand-line-client for Istanbul works well with most JavaScript testing frameworks: tap, mocha, AVA, etc.

How to collect code coverage data in JetBrains TeamCity?

In terms of JetBrains TeamCity CI server, these tasks are called build steps. As TeamCity comes bundled with dotCover Console Runner, you can collect code coverage data by just enabling the corresponding build step option.


1 Answers

Yes.

  1. configure the build script to produce the HTML report (preferably in a zip archive).
  2. configure build artifacts to publish the report as the build artifact to the server: at this point you can check that the archive is available in the build artifacts.
  3. Report Tab to make the report available as an extra tab on the build or project level.

To configure a report tab, go to the Project Settings| Report Tabs page, click Create new report tab. Provide the details like report tab type (Build or Project level), tab title, artifacts and start page.

You will now see tab with the tab name you provided in the above step as you trigger your next build configuration.

like image 65
Kunal Kapadia Avatar answered Oct 28 '22 16:10

Kunal Kapadia