jeffrifwald / babel-istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
144 stars 23 forks source link

Passing options to mocha #53

Closed silkentrance closed 8 years ago

silkentrance commented 8 years ago

Is it possible to pass additional options to mocha?

Searching, I found

istanbul cover _mocha -- (mocha specific options)

but when trying this with babel-istanbul

babel -d build/test test
babel-istanbul cover _mocha -- build/test/ --harmony

then the harmony specific features of node v0.12.9 will not be activated

Am I doing something wrong here?

silkentrance commented 8 years ago

I think I found the solution

With node@v0.12.9 I use

node --harmony $(which babel-istanbul) cover _mocha build/test

and all tests will run just fine. Now for travis...