Change to use worst Test Step result as the Test Case result#317
Conversation
When calculating the Test Case result Cucumber-Ruby-Core should conform with the GetWorstTestCaseResult function used in the Messages module.
|
Haven't got round to fully reviewing but we have this concept in messages |
Use test_step_result_rankings from Cucumber::Messages::Helpers::TestStepResultComparator to compare test results to find the worst one.
|
@luke-hill Yes |
I think it does, plus the flaky bit. So I don't mind which way we do things tbh. There's lots of refactors I want to do once cucumber-ruby v11 is released (Just waiting on fixing up last CCK bits). |
luke-hill
left a comment
There was a problem hiding this comment.
Can I ask that without this change what is currently happening / going wrong.
Also should this be included as a minimum for cucumber v11? I'm soon about to cut it and want to get everything sewn up at the same time ideally
Without this if a scenario has only an undefined step and an after hook fails, the summary report will say instead of the expected: Without this if a scenario has one undefined step (or pending) followed by an ambiguous step, the summary report will say instead of the expected: |
|
Ooooh ok. This might actually help me then with some of the work I need to do for messages and @davidjgoss will hopefully be able to help with this. We have 3 CCK examples currently failing, two of which are regarding hooks failing. Also are these only specific to the Also what would happen if it were Before Hooks that failed. Or BeforeAll hooks |
|
It is the |
luke-hill
left a comment
There was a problem hiding this comment.
Reviewed 3 and a bit files out of the 5. Got a few questions, but I get what is being done here.
luke-hill
left a comment
There was a problem hiding this comment.
For speed I'm just going to approve these
Description
Change to use worst Test Step result as the Test Case result
When calculating the Test Case result Cucumber-Ruby-Core should conform with the GetWorstTestCaseResult function used in the Messages module.
Type of change
Please delete options that are not relevant.
Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.
Note to other contributors
If your change may impact future contributors, explain it here, and remember to update README.md and CONTRIBUTING.md accordingly.
Checklist:
Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.
bundle exec rubocopreports no offenses