Description
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?