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

how to pass node flags? #40

Open
kilianc opened this issue Apr 17, 2014 · 1 comment
Open

how to pass node flags? #40

kilianc opened this issue Apr 17, 2014 · 1 comment

Comments

@kilianc
Copy link

kilianc commented Apr 17, 2014

I need to run something like:

cover run --harmony test/runner.js
@LiamKenneth
Copy link

Hi not 100% sure what you mean but I had an issue where I couldn't get the reporter flag to work for my Mocha tests.

I solved it by adding -- after specifying where my test folder is.

Example:
"test": "istanbul cover ./node_modules/mocha/bin/_mocha Test -- -R nyan"

Also see an example on the read me:

Want to pass some arguments to your test? No problem (note the --):

cover run mytests.js -- --arg1 --arg2=foo

Hope that helps

EDIT: Didn't see this was nearly 2 years old! :)

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