Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple includes for istanbul do not work. #65

Open
gavin771 opened this issue Oct 25, 2016 · 8 comments
Open

Multiple includes for istanbul do not work. #65

gavin771 opened this issue Oct 25, 2016 · 8 comments

Comments

@gavin771
Copy link

Utilizing the options.includes for multiple folder/files does not work as expect.

usage
includes:['./folder/name','./folder2/name']

although these folders can be included individually and coverage data is recorded, when they are combined, istanbul reports: No coverage information was collected, exit without writing coverage information

@pocesar
Copy link
Owner

pocesar commented Oct 25, 2016

what is your full grunt settings for the mocha_istanbul task?

@gavin771
Copy link
Author

mocha_istanbul: {
      coverage: {
        src: ['./tests/unit/folder1/', './tests/unit/folder2'],
        options: {
          mask: '*.tests.js',
          includes: ['./folder2/*.js', './folder2/*.js'],
          //dryRun: true,
          check: {
            lines: 95,
            statements: 95,
            branches: 95,
            functions: 95
          },
          root: './',
          reportFormats: ['lcov', 'text-summary']
        }
      }

@pocesar
Copy link
Owner

pocesar commented Oct 25, 2016

whats the output for grunt mocha_istanbul:coverage --verbose?

@gavin771
Copy link
Author

What section of the output are you looking for?

@pocesar
Copy link
Owner

pocesar commented Oct 25, 2016

I need to understand what istanbul is seeing, and if it's a bug in this module, in istanbul or in the settings

if you could provide a minimum reproducible test case that I could clone, would be good too

@gavin771
Copy link
Author

Ok ill work on a repo to reproduce the issue.

@houkk
Copy link

houkk commented Jan 17, 2018

sha?

@artbindu
Copy link

artbindu commented Dec 9, 2022

The issue is still reproducing.
If we add includes option under Istanbul options

includes: [
     '*.ts', '*.js'
],

It's not generating the coverage report.
Showing error as follows:

Screenshot 2022-12-09 at 12 15 50 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants