-
-
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
Suite configuration is not applied to tests selected by unique ID #3693
Comments
mpkorstanje
changed the title
Tests in a suite, executed by id, do not include a suites configuration
Tests in a suite, executed by id, do not use suite configuration
Feb 16, 2024
mpkorstanje
changed the title
Tests in a suite, executed by id, do not use suite configuration
Tests in a suite, executed by id, do not use configuration
Feb 16, 2024
mpkorstanje
added a commit
to mpkorstanje/junit5
that referenced
this issue
Feb 16, 2024
6 tasks
sbrannen
changed the title
Tests in a suite, executed by id, do not use configuration
Tests in a suite, selected by unique ID, do not use suite configuration
Feb 17, 2024
sbrannen
added
type: bug
component: Platform
theme: suites
and removed
status: new
labels
Feb 17, 2024
sbrannen
changed the title
Tests in a suite, selected by unique ID, do not use suite configuration
Suite configuration is not applied to tests in a suite when selected by unique ID
Feb 17, 2024
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. |
sbrannen
changed the title
Suite configuration is not applied to tests in a suite when selected by unique ID
Suite configuration is not applied to tests when selected by unique ID
Feb 17, 2024
sbrannen
changed the title
Suite configuration is not applied to tests when selected by unique ID
Suite configuration is not applied to tests selected by unique ID
Feb 18, 2024
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
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: