How can I pass node arguments to mocha?

1,644 views
Skip to first unread message

Helen Beeken

unread,
Dec 18, 2014, 6:19:07 AM12/18/14
to moc...@googlegroups.com
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?

Thanks, Helen

Christopher Hiller

unread,
Dec 20, 2014, 1:02:16 AM12/20/14
to moc...@googlegroups.com
Helen,

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.

thanks,  
Chris

--
You received this message because you are subscribed to the Google Groups "Mocha" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mochajs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages