Skip to content

Native: "test task did not discover any tests to execute" #5029

@Hansanto

Description

@Hansanto

Versions

Kotest version: 6.0.1
Kotlin version: 2.2.10
Gradle version: 9.0.0

Issue

In my application, when the CI tries to run the tests for LinuxX64, I get the same behavior as your example repository: https://github.com/kotest/kotest-examples/actions/runs/17198059872/job/48783344898

> Task :linuxX64Test FAILED
java.lang.IllegalStateException: :linuxX64Test exited with errors (exit code: 1)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':linuxX64Test'.
> There are test sources present and no filters are applied, but the test task did not discover any tests to execute. This is likely due to a misconfiguration. Please check your test configuration. If this is not a misconfiguration, this error can be disabled by setting the 'failOnNoDiscoveredTests' property to false.
6 actionable tasks: 6 executed

This error was not present before 6.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions