Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sending arguments to test script with istanbul

I'm trying to see my Mocha test code coverage with istanbul, but I need to supply the --recursive arguments to the test script _mocha, because else it only runs the tests in the test directory.

I tried istanbul cover "_mocha --recursive" but it says Unable to resolve file [_mocha --recursive].

like image 608
Ygg Avatar asked Aug 01 '13 13:08

Ygg


1 Answers

it seems the following works:

istanbul cover _mocha -- --recursive

like image 136
Ygg Avatar answered Nov 07 '22 00:11

Ygg