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

Cover @QuarkusTestResource & @QuarkusMainTest in QuarkusTestProfileAwareClassOrderer, skip @Nested, activate globally #21610

Merged
merged 3 commits into from
Nov 22, 2021

Conversation

famod
Copy link
Member

@famod famod commented Nov 22, 2021

Resolves #20420 and also makes sure that everyone working on this repo has the same test order (which has also a small con, but mostly pros).

This will also activate the orderer in user projects, but you can opt out of that via a custom junit-platform.properties (just tested this via a quickstart).
For most users this should be just fine and is actually an improvement.

If we merge this, I'll add something to the migration guide.

@famod famod requested a review from geoand November 22, 2021 09:56
@famod
Copy link
Member Author

famod commented Nov 22, 2021

I haven't yet checked one aspect: Are the annotations evaluated when placed on a superclass of the respective test class? None of those has @Inherited...

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@gastaldi gastaldi merged commit b0a31d9 into quarkusio:main Nov 22, 2021
@quarkus-bot quarkus-bot bot added this to the 2.6 - main milestone Nov 22, 2021
@famod famod deleted the testorderer-resource branch November 22, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take @QuarkusTestResource into account in QuarkusTestProfileAwareClassOrderer
3 participants