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

Having issues with shell command #2

Closed
tbranyen opened this issue Apr 27, 2015 · 1 comment
Closed

Having issues with shell command #2

tbranyen opened this issue Apr 27, 2015 · 1 comment

Comments

@tbranyen
Copy link

Hi @willembult, thanks for this module! I'm having a bit of trouble running the following command:

npm run mocha -- spec '{"hooks": "mocha-phantomjs-istanbul", "coverageFile": "./coverage.json"}'

Where my scripts look like:

"mocha": "mocha-phantomjs test/index.html",
"cov": "npm run mocha -- spec '{\"hooks\": \"mocha-phantomjs-istanbul\", \"coverageFile\": \"./coverage.json\"}'",
"test": "npm run jshint && npm run browserify && npm run cov"

I'm seeing no JSON file being output,and no errors.

Any pointers would be great, thanks in advance!

@tbranyen
Copy link
Author

I did some debugging and figured out that I needed to instrument first, makes sense. My working code looks like:

"cov": "npm run browserify -- -t browserify-istanbul && npm run mocha -- -k mocha-phantomjs-istanbul",
npm run cov

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

1 participant