For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

setFailOnNoMatchingTests

abstract fun setFailOnNoMatchingTests(failOnNoMatchingTests: Boolean)(source)

Let the test task fail if a filter configuration was provided but no test matched the given configuration.

Since

2.6

Parameters

failOnNoMatchingTests

whether a test task should fail if no test is matching the filter configuration.