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

Add failOnSkippedAfterRetry option #313

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

adboyarshinov
Copy link
Contributor

If a test is set to be skipped on it's body if certain condition meets, a retried test that is later skipped will fail the build.
Adding this option allows you to choose the behavior you want.

There is issue for this problem:
#130

@pshevche
Copy link
Member

pshevche commented Sep 9, 2024

@adboyarshinov, thank you for the PR. Could you please chime in on this question from the issue? The original reporters did not follow up on it, and I am trying to understand the use case better before we commit to introducing this option. Do you have an example of such a volatile precondition that would cause tests to run, fail, and then be skipped?

@pshevche pshevche linked an issue Sep 9, 2024 that may be closed by this pull request
Copy link
Member

@pshevche pshevche left a comment

Choose a reason for hiding this comment

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

All in all, looks good, well done! I left a couple of comments and suggest the following:

  1. Let us discuss how exactly this helps. I am still struggling to wrap up my head around the use case.
  2. Please add a test for this. You can use this test as an example, but I'd recommend adding one to JUnit5FuncTest.

Signed-off-by: Alexander Boyarshinov <[email protected]>
Copy link
Member

@pshevche pshevche left a comment

Choose a reason for hiding this comment

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

Let's add a test for the default behavior and we are good to go!

@pshevche pshevche merged commit 9b870cc into gradle:main Sep 10, 2024
5 checks passed
@pshevche
Copy link
Member

Thank you for your contribution, @adboyarshinov . We'll try to release it in 1.6.0 as soon as possible, probably this week.

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.

Shouldn't it rather be failOnPassedOrSkippedAfterRetry?
2 participants