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

fix(rspec-core): make the output field readable for rspec-core 3.10.x #63

Merged
merged 1 commit into from
Dec 20, 2021
Merged

fix(rspec-core): make the output field readable for rspec-core 3.10.x #63

merged 1 commit into from
Dec 20, 2021

Conversation

danilogco
Copy link
Contributor

@danilogco danilogco commented Dec 16, 2021

I tried to use it in a recent project and it's breaking. So I just added the output field as readable to make it work with rspec-core 3.10.x.

Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
/home/danilo/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters.rb:197:in `block in duplicate_formatter_exists?': undefined method `output' for #<RspecSonarqubeFormatter:0x000055c1c7c9cf28 @output=#<File:out/test-report.xml>, @current_file="", @last_failure_index=0> (NoMethodError)

Copy link
Owner

@otherguy otherguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems simple enough :) Thanks for the contribution.

One question: you mention it's breaking. How is it breaking exactly?

@otherguy otherguy self-assigned this Dec 20, 2021
@otherguy otherguy added the enhancement New feature or request label Dec 20, 2021
@otherguy otherguy merged commit f1f350e into otherguy:master Dec 20, 2021
@danilogco
Copy link
Contributor Author

@otherguy rspec raises an error at end of execution trying to generate the report:

/home/danilo/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters.rb:197:in block in duplicate_formatter_exists?': undefined method output' for #<RspecSonarqubeFormatter:0x000055c1c7c9cf28 @output=#File:out/test-report.xml, @current_file="", @last_failure_index=0> (NoMethodError)

@danilogco danilogco deleted the bugfix/undefined_method_output branch December 23, 2021 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants