문제

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].

도움이 되었습니까?

해결책

it seems the following works:

istanbul cover _mocha -- --recursive

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top