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

Test coverage with Istanbul? #63

Closed
franciscop opened this issue Feb 16, 2016 · 1 comment
Closed

Test coverage with Istanbul? #63

franciscop opened this issue Feb 16, 2016 · 1 comment

Comments

@franciscop
Copy link

Hi, I have been trying to make this work but I haven't been able at all:

mocha_phantomjs: {
  all: './tests.html',
  options: {
    coverage: {
      reporter: 'istanbul'
    }
  }
}

The tests work perfectly, but there's no code coverage at all, which I'd love to have. Do you have any clue how to include it? I'd prefer using Istanbul since I've used it before for pure Node.js testing, but I'm having trouble integrating it with phantomjs. I have tried many different things, but none seem to help me getting closer to make a test coverage:

mocha_phantomjs: {
  all: './tests.html',
  options: {
    coverage: {
      htmlReport: 'coverage/html'
    }
  }
}
@hcharley
Copy link

hcharley commented Jan 6, 2017

I too have had difficulties trying to use this project to get coverage reports. Anyone out there with a secret recipe for this?

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

2 participants