-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mocha-multi incompatible with latest mocha (gulp) #26
Comments
gulp-mocha v4 has made a major breaking change (hence the move to v4 from v3), which instead of calling the mocha API programatically, now shells out to run mocha. sindresorhus/gulp-mocha#151 This means that gulp-mocha options can now only be strings, not complex objects. If you need the old behaviour, i suggest you peg the version to v3. Otherwise, you'll need to use one of the other two methods for configuring which reporters to use. |
How is it possible to pass options when commands should be type=destination values? For context my situation is this:
which correctly builds the results.xml file to the provided destination path, however |
Thanks for the quick response - I understand from above though that using |
I'm not familar enough with gulp-mocha to answer that, you'd probably have
to ask them.
…On 19 June 2018 at 16:25, charliekassel ***@***.***> wrote:
Thanks for the quick response - I understand from above though that using
gulp-mocha v4+ (I'm using ^6.0.0) I can no longer do that as it can only
be a string?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJO6FQYEE3Cm0OYewdpzLMvtsrN_R9Iks5t-Rf6gaJpZM4MIDMj>
.
|
Fair enough, but I'm basing this on your earlier comment. |
Ah yes, I didn't scroll up - I wrote that a long time ago! I would suggest you experiment until you find options that work using the mocha commandline, and then hopefully those should convert directly to gulp-mocha. |
In the previous version of mocha (gulp-mocha 3.0.1) all was well with the universe and definitions for the mocha-multi reporter could be specified through the "reporterOptions" property sent into mocha. That now seems to be deprecated or something is seriously broken with the latest version of mocha (gulp-mocha 4.0.1). Here is the gulp script which includes my mocha call:
Up until the most recent release of mocha, this worked fine. Now the following error is spewed, declaring that "reporter definitions should be set in the
multi
shell variable". Here is the full error:Seems like something fundamental has changed, or this reporter is now DOA.
Any help?
The text was updated successfully, but these errors were encountered: