Istanbul: How to pass command line arguments to node.

Created on 7 Jun 2013  路  4Comments  路  Source: gotwarlost/istanbul

I want to run my tests using node --harmony

I tried istanbul cover ./test/index.js -- --harmony but that does not work.

Most helpful comment

Node arguments are not supported. You'll have to use the long form, as in:

node --harmony ./node_modules/istanbul/lib/cli.js cover ./test/index.js

etc. rather than using istanbul as an executable.

All 4 comments

Node arguments are not supported. You'll have to use the long form, as in:

node --harmony ./node_modules/istanbul/lib/cli.js cover ./test/index.js

etc. rather than using istanbul as an executable.

@gotwarlost nice!

Looks like it is working for you. Closing.

@gotwarlost is there no way this could be added, perhaps in the 1.0 alpha?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niftylettuce picture niftylettuce  路  29Comments

dankohn picture dankohn  路  25Comments

NiGhTTraX picture NiGhTTraX  路  36Comments

ouhouhsami picture ouhouhsami  路  16Comments

gbahamondezc picture gbahamondezc  路  24Comments