Skip to content

How to include all source files for code coverage reporting? #135

Closed
@bennycode

Description

@bennycode

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions