-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
QuarkusTestResources all started no matter what #10174
Comments
Seems related: #9854 |
@geoand this topic seems to be coming back again and again (in various manifestations). I was thinking that maybe |
With the current design we can't have that - all However, with the advent of That probably won't be part of |
How is |
It already works, take a look at the examples in the codebase. What isn't there is integration with |
Ok found the docs: https://github.com/quarkusio/quarkus/pull/9933/files#diff-47ba67a53b8e59e00a94c37fdc60c396 This is a nice improvement. I don't like the sort-by-package approach since packaging shoud be driven by business (and visibility) rules but I do know you cannot do anything about sorting test classes since surefire plugin is deciding that on its own. I guess |
The sorting is proposed as a way of minimizing the number of Quarkus restarts necessary.
It should. If it doesn't, then please open an issue |
Btw, back in 2017 there was an attempt to add custom sorting strategies to surefire: apache/maven-surefire#169 |
are QuarkusTestProfile in 1.5.2.Final? |
No, it will part of |
Ignore I can see that its targeted towards 1.6.0 |
@famod did you try using the test profile? Do you have any feedback? |
No worries, thanks |
#10368 is related to this |
Closing this as #10368 has been merged and will be part of 1.7 |
Describe the bug
I have 2 quarkus test and 2 seperate test resources (1 for starting a MySQL container and another for starting a LocalStack container). Each of the test classes are annotated with @QuarkusTestResource for there resource.
Expected behavior
Since each test class is independent and has different resources I would expect to only see the resource assigned to that class to start
Actual behavior
No matter which test I seem to run both QuarkusTestResourceLifecycleManager seems to start up
To Reproduce
Steps to reproduce the behavior:
1.
2.
3.
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: