Skip to content
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

Closed
tomv564 opened this issue Oct 2, 2016 · 2 comments · Fixed by #98
Closed

configureDefaultReporter() options are lost #95

tomv564 opened this issue Oct 2, 2016 · 2 comments · Fixed by #98

Comments

@tomv564
Copy link
Contributor

tomv564 commented Oct 2, 2016

In 2.5.x versions of jasmine-npm, calling configureDefaultReporter before calling execute appears to lose the provided options.

For example: configureDefaultReporter({showColors: false}) has no effect, the only way to turn colours off is by setting jasmine.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 calling configureDefaultReporter in execute?

@jasonwells
Copy link

We are seeing the same behavior in 2.5.2. When {print: function(){}} is passed, the prints of . for success and F for failures is still occurring.

cnishina added a commit to cnishina/jasmine-npm that referenced this issue Oct 28, 2016
- remove provideFallbackReporter since it is no longer used
- prevent execute method from overriding configureDefaultReporter

closes jasmine#95
@slackersoft slackersoft added the bug label Nov 8, 2016
@slackersoft
Copy link
Member

@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!

cnishina added a commit to cnishina/jasmine-npm that referenced this issue Nov 8, 2016
- setOptions to the ConsoleReporter if it exists on the options param
- TODO(cnishina): write tests

closes jasmine#95
cnishina added a commit to cnishina/jasmine-npm that referenced this issue Nov 8, 2016
- setOptions to the ConsoleReporter if it exists on the options param
- TODO(cnishina): write tests

closes jasmine#95
cnishina added a commit to cnishina/jasmine-npm that referenced this issue Nov 8, 2016
- 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
heathkit added a commit to heathkit/protractor that referenced this issue Nov 8, 2016
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
cnishina pushed a commit to angular/protractor that referenced this issue Nov 9, 2016
Upgrading to 2.5.2 causes #3606. We'll need to wait on a fix for
jasmine/jasmine-npm#95 before upgrading before upgrading
cnishina added a commit to cnishina/jasmine-npm that referenced this issue Dec 2, 2016
- 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
slackersoft pushed a commit that referenced this issue Dec 2, 2016
bodyduardU pushed a commit to bodyduardU/protractor that referenced this issue Dec 5, 2022
Upgrading to 2.5.2 causes #3606. We'll need to wait on a fix for
jasmine/jasmine-npm#95 before upgrading before upgrading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants