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

quarkus.test.profile not considered since quarkus 2.0.0.Alpha2 #17103

Closed
zbendhiba opened this issue May 10, 2021 · 1 comment
Closed

quarkus.test.profile not considered since quarkus 2.0.0.Alpha2 #17103

zbendhiba opened this issue May 10, 2021 · 1 comment
Labels
kind/bug Something isn't working triage/invalid This doesn't seem right

Comments

@zbendhiba
Copy link
Contributor

Describe the bug

When running a test a quarkus.test.profile, it gets the default properties on version quarkus 2.0.0.Alpha2, instead of the properties for the profile that I've set.

Expected behavior

It should gets the properties for the profile.

To Reproduce

I created a project to reproduce the problem. The URL of the project.
The profile is set in MyTestResource.java
The test failing in GreetingResourceTest.java)

@geoand
Copy link
Contributor

geoand commented May 10, 2021

To be honest, I am surprised this ever worked.

Setting the test profile needs to happen very very early, so it's best done using a system property when launching the maven build or as part of the surefire configuration.

@geoand geoand closed this as completed May 10, 2021
@geoand geoand added the triage/invalid This doesn't seem right label May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants