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

MinSuccess is not respected if there was a previous fail #65

Open
greenflash1986 opened this issue Nov 2, 2021 · 0 comments
Open

MinSuccess is not respected if there was a previous fail #65

greenflash1986 opened this issue Nov 2, 2021 · 0 comments

Comments

@greenflash1986
Copy link

greenflash1986 commented Nov 2, 2021

If there is a testfailure in the first runs the test will run times instead of minSuccess is fullfilled.

private int test = 0;

@DisplayName("should stop after 3rd retry, but runs 20 times")
@RepeatedIfExceptionsTest(repeats = 20, suspend = 1000, minSuccess = 1)
public void testTest() {
	if (test < 2) {
		test++;
		fail();
	}
}
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

No branches or pull requests

1 participant