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

Fix reuse of instances in Quarkus tests with nested test classes #25831

Merged
merged 1 commit into from
May 27, 2022

Conversation

Sgitario
Copy link
Contributor

Before these changes, we were creating instances regardless even though the parent classes were already created.

This pull request fixes this issue and adds a test coverage when running nested classes with lifecycle test instance.

Fix #25812

Before these changes, we were creating instances regardless even though the parent classes were already created. 

This pull request fixes this issue and adds a test coverage when running nested classes with lifecycle test instance.

Fix quarkusio#25812
@Sgitario
Copy link
Contributor Author

/cc @ivansenic @geoand

@ivansenic
Copy link
Contributor

Just a small note, in my tests @BeforeAll was working fine. @AfterAllwas failing..

@Sgitario
Copy link
Contributor Author

Just a small note, in my tests @BeforeAll was working fine. @AfterAllwas failing..

Yes, but I used @BeforeAll instead because this way I could assert it was working as expected.

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.

QuarkusTestExtension fails to run @AfterAll with nested test classes and per-class test instance lifecycle
3 participants