-
Notifications
You must be signed in to change notification settings - Fork 145
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
configureDefaultReporter() options are lost #95
Comments
We are seeing the same behavior in 2.5.2. When |
- remove provideFallbackReporter since it is no longer used - prevent execute method from overriding configureDefaultReporter closes jasmine#95
@tomv564 I think you're correct about the solution. I think we missed this use case in the recent reporter refactoring. We'd be happy to review a pull request that gates the default configuration of the default reporter on whether or not it has already been configured. Thanks for using Jasmine! |
- setOptions to the ConsoleReporter if it exists on the options param - TODO(cnishina): write tests closes jasmine#95
- setOptions to the ConsoleReporter if it exists on the options param - TODO(cnishina): write tests closes jasmine#95
- setOptions to the ConsoleReporter if it exists on the options param - test setOptions should not override existing options if set multiple times closes jasmine#95
Upgrading to 2.5.2 causes angular#3606. We'll need to wait on a fix for jasmine/jasmine-npm#95 before upgrading before upgrading
Upgrading to 2.5.2 causes #3606. We'll need to wait on a fix for jasmine/jasmine-npm#95 before upgrading before upgrading
- setOptions to the ConsoleReporter if it exists on the options param - test setOptions should not override existing options if set multiple times closes jasmine#95
Upgrading to 2.5.2 causes #3606. We'll need to wait on a fix for jasmine/jasmine-npm#95 before upgrading before upgrading
In 2.5.x versions of jasmine-npm, calling
configureDefaultReporter
before callingexecute
appears to lose the provided options.For example:
configureDefaultReporter({showColors: false})
has no effect, the only way to turn colours off is by settingjasmine.showingColors = false
.I believe this behaviour appeared with the removal of the
this.reportersCount === 0
check in 5989948#diff-c413964b3d28796db67dd5fe1f43851bR136.Perhaps the fix is to check
this.defaultReporterAdded
before callingconfigureDefaultReporter
inexecute
?The text was updated successfully, but these errors were encountered: