show details for failing examples tagged with aggregate_failures: true#108
Open
skaestle wants to merge 3 commits into
Open
show details for failing examples tagged with aggregate_failures: true#108skaestle wants to merge 3 commits into
aggregate_failures: true#108skaestle wants to merge 3 commits into
Conversation
added 2 commits
September 10, 2024 10:23
specs were copied from https://github.com/ennova/rspec_junit_formatter/tree/aggregate-failures minus the line break changes
…tead of notification.message_lines
Author
|
hi there @sj26. any chance you could have a look at this PR? we have this code running on our CI (gitlab) for awhile and we have yet to see any adverse side-effects Let me know if there is anything to help get this PR into the main |
Owner
|
This looks like a good solution. The only potential problem is compatibility. Does this work for all rspec versions currently supported by the gem? |
Owner
|
This doesn't seem to work for rspec 3.0 for example: |
Author
|
Thanks for getting back to me. And sorry for not checking It appears that (Now I see @jasoncodes had already correctly handled that in the specs.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will fix Issue #56 and was heavily inspired by #74 and all credit for the specs go to @jasoncodes
It outputs the
exception.messagein the case of aRSpec::Expectations::MultipleExpectationsNotMetError. This emulates whatCore::Formatters::JsonFormatterdoes: https://github.com/rspec/rspec-core/blob/main/lib/rspec/core/formatters/json_formatter.rb#L43Before
After