A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jprichardson/electron-mocha/issues/135 below:

How to include all source files for code coverage reporting? · Issue #135 · jprichardson/electron-mocha · GitHub

I am using electron-mocha to run the test suite of my Electron app. To get code coverage information I execute istanbul instrument beforehand. After the tests finish I am creating a report using remap-istanbul.

The report looks good. I can see which lines of code have been tested and mapping to my TypeScript source files works. 🍾

The only thing that is a little off are the code coverage metrics (% lines of codes tested) because in my report I only see how much of the code, that has been imported by the tests, has been tested. I would like to include all my source files in the report (even if the test code doesn't run through this code).

I know that istanbul has an --include-all-sources flag for this purpose but how does this work with electron-mocha? Is there a similar flag?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4