2014년 12월 24일 수요일

[mochajs] How can I pass node arguments to mocha?

Is there a way to run a Mocha test with some extra node arguments, for example "--trace_gc" or "--trace_gc-verbose"? 

I know there are a few options which are covered, for example --gc-global and --harmony, but I was wondering if there's a generic way of passing in other options?



The list of supported options is shown in the source code here.  I'm unsure if this is documented anywhere.

If you would like to add another option, please submit a pull request.


댓글 없음:

댓글 쓰기