-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
TestClassOrder
does not play nicely with @RepeatedTest
#4171
Comments
TestClassOrder
does not play nicely with @RepeatedTest
Hi @roded, Congratulations on submitting your first issue for JUnit 5! 👍
That's actually not true. If you introduce multiple When you set If you want all In light of that, I am closing this issue. Regards, Sam |
This comment has been minimized.
This comment has been minimized.
@sbrannen Thanks for the reply. |
If you run the test classes in parallel, you will still benefit at that level, which can be significant depending on the number of test classes. If you only want test methods in certain test classes to execute in the Perhaps @marcphilipp can provide additional insight. |
I would like to have the opposite: have the nested classes execute one after the other but have their internal |
Have you tried only putting |
@marcphilipp |
We recently introduced @roded Would you mind creating an issue for it in case you agree? |
@marcphilipp Something here is confusing me.
In the above class as a reference, it makes sense to me that Thanks. |
I'm not sure what you mean with "a regular test-worker thread". Declaring
Do you mean if the test methods in the nested classes wouldn't be annotated with |
Seems like
TestClassOrder
does not play nicely with@RepeatedTest
.Steps to reproduce
The following results in out of order test execution. I expected all
writeTest
repetitions to execute before allreadTest
executions.Replacing
@RepeatedTest
with@Test
works though.Log:
Context
JUnit version: 5.11.3
Running via Gradle on IntelliJ.
The text was updated successfully, but these errors were encountered: