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

[Cucumber contrib] remove tracking failed tests count per test suite, mark test suite as failed if any test fails #94

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

anmarchenko
Copy link
Member

What does this PR do?
Simplifies test suite failure tracking for Cucumber integration: instead of counting how many tests failed per current test suite, we will mark test suite as failed if any of the tests failed.

This will eliminate additional variable and condition checks that could cause bugs.

Motivation
Making test suite failure tracking for Cucumber simpler and similar to Minitest implementation.

Additional Notes
Tracking failure counts still exists for test session for the following reasons:

  • we don't have to reset this number during the test session
  • we use it only for Cucumber < 8 as since Cucumber 8.0 we have a proper support for test session result

How to test the change?
Unit tests stay the same, it is a refactoring without behaviour change

… mark test suite as failed if any test fails
@anmarchenko anmarchenko requested review from a team and juan-fernandez January 3, 2024 15:17
@anmarchenko anmarchenko changed the title [Cucumber contrib] remove tracking failed test scount per test suite, mark test suite as failed if any test fails [Cucumber contrib] remove tracking failed tests count per test suite, mark test suite as failed if any test fails Jan 3, 2024
@anmarchenko anmarchenko merged commit b117666 into main Jan 3, 2024
27 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/cucumber_simpler_failure_tracking branch January 3, 2024 15:43
@github-actions github-actions bot added this to the 0.7.0 milestone Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants