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

List all not ok scenarios in the summary #1158

Merged
merged 3 commits into from
Jul 14, 2017
Merged

Conversation

brasmusson
Copy link
Contributor

Summary

List all not ok scenarios in the summary.

Details

Currently only failed scenarios are listed in the summary, but also scenarios of other result types can force the exit code to be non-zero (currently pending and undefined scenarios - in strict mode). Therefore list the scenarios of all result type the each would have made the exit code non-zero.

Also reduce the duplication between Cucumber-Ruby and Cucumber-Ruby-Core by using

  • Cucumber::Core::Report::Summary#ok? to calculate the exit code
  • Cucumber::Core::Test::Result::TYPES and Cucumber::Core::Report::Summary in ConsoleCounts

These changes also paves the way for the introduction of ambiguous results and flaky results.

Depends on cucumber/cucumber-ruby-core#140.

How Has This Been Tested?

Existing feature files has been modified to verify the changed listing of scenarios in the summary.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@ghost ghost assigned brasmusson Jul 13, 2017
@brasmusson brasmusson force-pushed the list-all-not-ok-scenarios branch from 1fec5e4 to 4424a0c Compare July 14, 2017 12:54
Currently only failed scenarios are listed in the summary, but also
scenarios of other result types can force the exit code to be non-zero.
Therefore list the scenarios of all result type the each would have made
the exit code non-zero.
Use the Cucumber::Core::Test::Result::TYPES and
Cucumber::Core::Report::Summary to reduce the duplication between
ConsoleCounts and Cucumber-Ruby-Core.
@brasmusson brasmusson force-pushed the list-all-not-ok-scenarios branch from 4424a0c to c5453f7 Compare July 14, 2017 14:31
@brasmusson brasmusson merged commit c5453f7 into master Jul 14, 2017
brasmusson added a commit that referenced this pull request Jul 14, 2017
@brasmusson brasmusson deleted the list-all-not-ok-scenarios branch July 14, 2017 15:00
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant