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

Support Test Resources from @TestProfile in native mode #18072

Closed
Sgitario opened this issue Jun 22, 2021 · 1 comment · Fixed by #18077
Closed

Support Test Resources from @TestProfile in native mode #18072

Sgitario opened this issue Jun 22, 2021 · 1 comment · Fixed by #18077
Labels
area/testing kind/enhancement New feature or request
Milestone

Comments

@Sgitario
Copy link
Contributor

Description

In #13154, the annotation @TestProfile was supported also in Native tests. However, when having test resources in the test profile like:

public class ConfluentTestProfile implements QuarkusTestProfile {

    @Override
    public String getConfigProfile() {
        return "confluent";
    }

    @Override
    public List<TestResourceEntry> testResources() {
        return Collections.singletonList(new TestResourceEntry(ConfluentKafkaResource.class));
    }
}

Where ConfluentKafkaResource can be any resource. In the above example, it's using testcontainers to startup a kafka instance.

This is not supported yet when running the test on Native.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 22, 2021

/cc @geoand

@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants