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

Make @TestProfile work with integration tests #20223

Merged
merged 1 commit into from Sep 18, 2021
Merged

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Sep 17, 2021

Fixes: #20205

@quarkus-bot
Copy link

quarkus-bot bot commented Sep 17, 2021

Failing Jobs - Building 3221e8e

Status Name Step Failures Logs Raw logs
Gradle Tests - JDK 11 Build Failures Logs Raw logs

Full information is available in the Build summary check run.

Failures

⚙️ Gradle Tests - JDK 11 #

- Failing: integration-tests/gradle 

📦 integration-tests/gradle

io.quarkus.gradle.devmode.MultiModuleIncludedBuildTest.main line 24 - More details - Source on GitHub

java.lang.AssertionError: 

Expecting actual:

import io.quarkus.test.junit.QuarkusTestProfile;

// we use a QuarkusTestProfile to ensure that QuarkusIntegrationTest works properly with them
public class AppTestProfile implements QuarkusTestProfile {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't that be in integration-tests/main? What if narayana-lra is moved out of the Quarkus main repo at some point? Wouldn't we then loose coverage of this feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, but we can cross that bridge if we get to it :)

Copy link
Member

Choose a reason for hiding this comment

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

😄

My point is: Will anyone remember to look that closely? Anyway, I just find it confusing that coverage of some test framework aspects is scattered over the repo which makes it hard to validate changes without running full CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will remember :)

Copy link
Member

@famod famod left a comment

Choose a reason for hiding this comment

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

LGTM

I'd still prefer a dedicated IT in main, but better have some test than none at all. 😉

@geoand geoand merged commit 15c2f12 into quarkusio:main Sep 18, 2021
@quarkus-bot quarkus-bot bot added this to the 2.3 - main milestone Sep 18, 2021
@geoand geoand deleted the #20205 branch September 23, 2021 14:19
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.

QuarkusTestResourceLifecycleManager is not called when used in QuarkusIntegrationTest annotated classes
3 participants