LaunchResult#getOutput() behaves differently in continuous testing mode than with ./mvnw clean verify
#22790
Labels
Milestone
./mvnw clean verify
#22790
Describe the bug
Using
LaunchResult#getOutput()
in a@QuarkusMainTest
inquarkus dev
continuous testing mode, it captures no only the output of the CLI application. In addition, the dev mode output on stdout is also captured. This causes tests to fail inquarkus dev
mode. The tests work flawlessly when run with./mvnw clean verify
Expected behavior
LaunchResult#getOutput()
captures only stdout and stderr of the CLI application and disregards the stdout output ofquarkus dev
Actual behavior
Actually,
LaunchResult#getOutput()
captures also the stdout ofquarkus dev
in continuous testing mode.How to Reproduce?
quarkus dev
GreetingCommandTest#testGreet(QuarkusMainLauncher)
fail withquarkus dev
./mvnw clean verify
and all tests will passOutput of
uname -a
orver
Darwin cdh 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64
Output of
java -version
java version "17" 2021-09-14 LTS Java(TM) SE Runtime Environment (build 17+35-LTS-2724) Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Maven home: ~/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.8.1 Java version: 17, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home Default locale: de_AT, platform encoding: UTF-8 OS name: "mac os x", version: "12.1", arch: "aarch64", family: "mac"
Additional information
No response
The text was updated successfully, but these errors were encountered: