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

Show proper error when a @QuarkusTest is run from a non-Quarkus project dir #18197

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jun 28, 2021

This change fixes the (not uncommon) case where the IDE picks the wrong
working directory to launch the tests.
Without this PR, Quarkus throws a totally un-actionable message
regarding SmallRye Config's inability to expand the platform
properties

Fixes: #18132

@geoand geoand requested a review from aloubyansky June 28, 2021 10:41
@geoand geoand changed the title Show proper error when a @QuarkusTest is run from a non-Quarkus project dir Show proper error when a @QuarkusTest is run from a non-Quarkus project dir Jun 28, 2021
…ct dir

This change fixes the (not uncommon) case where the IDE picks the wrong
working directory to launch the tests.
Without this PR, Quarkus throws a totally un-actionable message
regarding SmallRye Config's inability to expand the platform
properties

Fixes: quarkusio#18132

Co-authored-by: Alexey Loubyansky <[email protected]>
@aloubyansky aloubyansky added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 28, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 28, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building 206fa95

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build ⚠️ Check → Logs Raw logs
Attach pull request number ⚠️ Check → Logs Raw logs
CI Sanity Check ⚠️ Check → Logs Raw logs

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 28, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building 93b91bf

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build ⚠️ Check → Logs Raw logs
Attach pull request number ⚠️ Check → Logs Raw logs
CI Sanity Check ⚠️ Check → Logs Raw logs

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Nice usability improvement, thanks!

@geoand
Copy link
Contributor Author

geoand commented Jun 28, 2021

YW!

I was hit by this myself a couple times and didn't know what to make of it... Then I saw the linked issue and realised that it's a general problem that needs addressing.

@geoand geoand merged commit a342852 into quarkusio:main Jun 28, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 28, 2021
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 28, 2021
@geoand geoand deleted the #18132 branch June 28, 2021 15:38
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.1.Final Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants