Skip to content

Fix no-test-executed warning in example-client (fails in Gradle 9.0) #26

Description

@Besi97

Deprecation Warning

Test sources are present but no test was executed. This will become a build failure in Gradle 9.0.

Where

plugins/gradle/example-client/src/test/java/io/github/besi97/order/service/CreateProductIntegrationTest.java

The file contains a single test method annotated with @Disabled("The test is for reference only"). It is an integration test requiring a running server at localhost:8081.

Gradle detects test sources but executes zero tests, triggering the warning.

Fix options

  1. Add a real test that actually runs, or
  2. Remove the test source file entirely, or
  3. Configure Gradle to not fail on no matching tests:
    test {
        filter {
            setFailOnNoMatchingTests(false)
        }
    }

Removed in (becomes error)

Gradle 9.0

Resource

https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#test_task_fail_on_no_test_executed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions