We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The QuarkusMainTests are spuriously intercepting output coming from different sources.
QuarkusMainTest
The QuarkusMainTests report back only the output from the specific launched Process.
Process
No response
I started reducing the error down to a test in this codebase.
In io.quarkus.it.picocli.PicocliTest add the following test:
io.quarkus.it.picocli.PicocliTest
@Test public void testLogCapturing(QuarkusMainLauncher launcher) { org.jboss.logging.Logger.getLogger("test").error("error"); LaunchResult result = launcher.launch("with-method-sub-command", "hello", "-n", "World!"); assertThat(result.exitCode()).isZero(); assertThat(result.getOutput()).isEqualTo("Hello World!"); }
and the test will fail with an error similar to:
[ERROR] Failures: [ERROR] PicocliTest.testLogCapturing:43 expected: "Hello World!" but was: "2021-12-16 19:28:23,647 ERROR [test] (main) error Hello World!" [INFO] [ERROR] Tests run: 11, Failures: 1, Errors: 0, Skipped: 0
The expectation is that the test should pass.
uname -a
ver
java -version
main
mvnw --version
gradlew --version
The text was updated successfully, but these errors were encountered:
/cc @geoand
Sorry, something went wrong.
I've spent quite a few hours on this, thanks for the fix Andrea :)
You actually found it @DGuhr 👍
Fixed by #22303.
Successfully merging a pull request may close this issue.
Describe the bug
The
QuarkusMainTest
s are spuriously intercepting output coming from different sources.Expected behavior
The
QuarkusMainTest
s report back only the output from the specific launchedProcess
.Actual behavior
No response
How to Reproduce?
I started reducing the error down to a test in this codebase.
In
io.quarkus.it.picocli.PicocliTest
add the following test:and the test will fail with an error similar to:
The expectation is that the test should pass.
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
main
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: