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 continuous test mode hides server output #18887

Closed
pilhuhn opened this issue Jul 21, 2021 · 4 comments · Fixed by #18922
Closed

Quarkus continuous test mode hides server output #18887

pilhuhn opened this issue Jul 21, 2021 · 4 comments · Fixed by #18922
Labels
Milestone

Comments

@pilhuhn
Copy link
Contributor

pilhuhn commented Jul 21, 2021

Describe the bug

I am using the new continuous test mode, which is awesome.
Now when I work on some test-driven coding, I write a test, write the code and then Quarkus runs my test and shows me that my code is not working:

2021-07-21 12:26:16,957 ERROR [io.qua.test] (Test runner thread) ==================== TEST REPORT #11 ====================
2021-07-21 12:26:16,957 ERROR [io.qua.test] (Test runner thread) Test CheckerTest#basicCheck() failed 
: java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <500>.

        at io.restassured.internal.ValidatableResponseImpl.statusCode(ValidatableResponseImpl.groovy)
        at com.redhat.clouddot.poc.funq.CheckerTest.basicCheck(CheckerTest.java:26)

2021-07-21 12:26:16,957 ERROR [io.qua.test] (Test runner thread) >>>>>>>>>>>>>>>>>>>> 1 TEST FAILED <<<<<<<<<<<<<<<<<<<<


--
1 test failed (1 passing, 0 skipped), 2 tests were run in 467ms. Tests completed at 12:26:16.
Press [r] to re-run, [v] to view full results, [p] to pause, [h] for more options>

But it hides the internal error message that the server would produce, which would help me understand why my code fails.

E.g. when I trigger the same rest-test not from a @QuarkusTest and RestAssured, but via curl , I get my normal stack trace that tells me what does not work in my code.

Expected behavior

Test failure output and server output are shown

Actual behavior

Only test output is shown, but server output is omitted

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.1.0.CR1

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 21, 2021

/cc @stuartwdouglas

@stuartwdouglas
Copy link
Member

Press [o] to trigger test output, or use quarkus.test.display-test-output=true to always display it.

We hide it by default to avoid cluttering the console with massive amounts of noise, but maybe we should display the captured output when there is a failure like we do in the Dev UI.

stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Jul 22, 2021
@stuartwdouglas
Copy link
Member

I will make this part of the prompt to make it more obvious

@pilhuhn
Copy link
Contributor Author

pilhuhn commented Jul 22, 2021

Thank you Stuart!

@quarkus-bot quarkus-bot bot added this to the 2.2 - main milestone Jul 28, 2021
@gsmet gsmet modified the milestones: 2.2 - main, 2.1.1.Final Aug 3, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants