-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Suite configuration is not applied to tests selected by unique ID #3693
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
Comments
mpkorstanje
added a commit
to mpkorstanje/junit5
that referenced
this issue
Feb 16, 2024
6 tasks
Thanks for bringing this to our attention and for providing a detailed example. I've confirmed that this is a bug, and I've assigned it to the 5.11 M1 milestone. We don't currently have any plans to release 5.10.3; however, if more bugs accumulate we may choose to backport the fix for this to 5.10.x as well. |
marcphilipp
pushed a commit
that referenced
this issue
Mar 19, 2024
Tests in a suite selected by unique id did not receive their configuration because this was only applied to the discovery request builder when a suite class was selected. By splitting the processing of configuration annotations and select and filter annotations, the configuration can now always be applied prior to discovery. Fixes #3693.
sbrannen
added a commit
that referenced
this issue
Mar 21, 2024
8 tasks
marcphilipp
pushed a commit
that referenced
this issue
Jun 17, 2024
Tests in a suite selected by unique id did not receive their configuration because this was only applied to the discovery request builder when a suite class was selected. By splitting the processing of configuration annotations and select and filter annotations, the configuration can now always be applied prior to discovery. Fixes #3693. (cherry picked from commit 74bd85c)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
Given a suite with some configuration:
And a test that is sensitive to that configuration
Then executing the tests either by their uniqueId or the
SuiteTest
class should not make a difference in execution:But when executed we see that this is the case.
Context
The above example is somewhat contrived for the sake of reproducibility. The actual problems showed up when using Surefire to rerun Cucumber tests in a Suite. Surefire uses unique ids to rerun failures and Cucumber Suites tend to come with more configuration than JUnit.
The text was updated successfully, but these errors were encountered: