Skip to content

continuous-testing=disabled causes NPE and does not disable continuous testing mode #49504

@dantalian-pv

Description

@dantalian-pv

Describe the bug

I would like to use my gradle+quarkus project in CI/CD pipeline, for that I need to disable continuous testing mode, so the gradle task run stops when all tests are passed.
For that I've set quarkus.test.continuous-testing=disabled in the application.properties as it stated here, but it causes NPE during the task run and does not disable continuous tests.

I am running tests with ./gradlew quarkusTest

Expected behavior

Expecting that with quarkus.test.continuous-testing=disabled configuration option the task run of quarkusTest is finished when all tests are passed and not hangs forever waiting for changes.

Actual behavior

Throws exception during the task run:

> ./gradlew quarkusTest

> Task :quarkusTest
Listening for transport dt_socket at address: 5005
Press [e] to edit command line args (currently ''), [h] for more options>
2025-08-13 13:08:55,283 ERROR [io.qua.test] (main) Failed to create compiler, runtime compilation will be unavailable: java.lang.NullPointerException: Cannot invoke "io.quarkus.deployment.dev.testing.TestConfig.includeModulePattern()" because "this.config" is null
        at io.quarkus.deployment.dev.testing.TestSupport.init(TestSupport.java:161)
        at io.quarkus.deployment.dev.testing.TestSupport.start(TestSupport.java:136)
        at io.quarkus.deployment.dev.testing.TestHandler.accept(TestHandler.java:22)
        at io.quarkus.deployment.dev.testing.TestHandler.accept(TestHandler.java:18)
        at io.quarkus.runner.bootstrap.AugmentActionImpl.performCustomBuild(AugmentActionImpl.java:163)
        at io.quarkus.deployment.dev.IsolatedTestModeMain.accept(IsolatedTestModeMain.java:131)
        at io.quarkus.deployment.dev.IsolatedTestModeMain.accept(IsolatedTestModeMain.java:34)
        at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:143)
        at io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:98)
        at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:102)
        at io.quarkus.deployment.dev.DevModeMain.main(DevModeMain.java:65)

__  ____  __  _____   ___  __ ____  ______ 
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ 
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \   
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/   
2025-08-13 13:08:55,294 INFO  [io.qua.test] (main) Quarkus continuous testing mode started

Then hangs forever listening for config or code changes.

How to Reproduce?

I've made a test app:
continuous-test-demo.tar.gz

Which I then run with: ./gradlew quarkusTest

Output of uname -a or ver

Linux localhost.localdomain 6.4.0-150600.23.60-default #1 SMP PREEMPT_DYNAMIC Tue Jul 1 14:43:49 UTC 2025 (6f98261) x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.16" 2025-07-15

Quarkus version or git rev

3.25.2

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

Gradle 8.14 Kotlin: 2.0.21 Groovy: 3.0.24

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions