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

Maven surefire.rerunFailingTestsCount option does not work in the case where there are test profiles or resources, unless the test order falls such that the failing test uses the last profile/resource #46048

Open
holly-cummins opened this issue Feb 3, 2025 · 3 comments

Comments

@holly-cummins
Copy link
Contributor

No description provided.

@holly-cummins holly-cummins converted this from a draft issue Feb 3, 2025
Copy link

quarkus-bot bot commented Feb 3, 2025

/cc @quarkusio/devtools (maven)

@gsmet
Copy link
Member

gsmet commented Feb 4, 2025

The test is not rerun immediately after the failing one?

@holly-cummins
Copy link
Contributor Author

holly-cummins commented Feb 4, 2025

The test is not rerun immediately after the failing one?

Oh, sorry, I created an issue in haste to have something to anchor to, but I should have added context. Re-running is working fine in main, but it's broken by #34681. The problem is that the quarkus test extension shuts down the classloaders and app when switching between resources, so that by the time maven triggers the rerun, it's trying to run against a terminated app.

When maven triggers the re-run, discovery is re-executed, but not classloading, so we don't get a chance to make a 'fresh' app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants