No Test Found nor Continuous Testing nor Live Reload On Command Mode Applications when quarkus.test.continuous-testing=true
Property quarkus.test.continuous-testing is set to true. It works when running quarkus dev via Quarkus CLI in Terminal: finds the Tests, executed Continuous Testing and Live Reload but it won't when Running as a normal Java app.
@QuarkusMain
public class Application {
public static void main(String ... args) {
Quarkus.run(args);
}
}
Removing @QuarkusMain didn't work
Press [h] for more options>
Tests paused
Press [r] to resume testing, [h] for more options>
Press [r] to resume testing, [o] Toggle test output, [h] for more options>
Running tests for the first time
Press [h] for more options>
Press [o] Toggle test output, [h] for more options>
Starting test run, 0 tests to run.
Running 1/0. Running: #JUnit Jupiter
Press [r] to re-run, [h] for more options>
Press [r] to re-run, [o] Toggle test output, [h] for more options>
No tests found
Expected behavior
Test found, Continuous Testing and Live Reload
Actual behavior
No Test found, No Continuous Testing, No Live Reload
How to Reproduce?
Make a Command Mode App and Sample Test:
@QuarkusMain
public class Application {
public static void main(String ... args) {
Quarkus.run(args);
}
}
@QuarkusTest
public class TruthTest {
@Test
@Launch("test") // Same result if dropped
public void test() {
assertTrue(true);
}
}
Output of uname -a or ver
Linux joaquin 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk version "17.0.3" 2022-04-19
GraalVM version (if different from Java)
openjdk version "17.0.3" 2022-04-19 OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing)
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Describe the bug
No Test Found nor Continuous Testing nor Live Reload On Command Mode Applications when quarkus.test.continuous-testing=true
Property quarkus.test.continuous-testing is set to true. It works when running quarkus dev via Quarkus CLI in Terminal: finds the Tests, executed Continuous Testing and Live Reload but it won't when Running as a normal Java app.
Removing @QuarkusMain didn't work
Expected behavior
Test found, Continuous Testing and Live Reload
Actual behavior
No Test found, No Continuous Testing, No Live Reload
How to Reproduce?
Make a Command Mode App and Sample Test:
@QuarkusMain public class Application {
}
@QuarkusTest public class TruthTest {
}
Output of
uname -a
orver
Linux joaquin 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.3" 2022-04-19
GraalVM version (if different from Java)
openjdk version "17.0.3" 2022-04-19 OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing)
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
Additional information
No response