api / org.gradle.api.tasks.testing / TestFilter / setFailOnNoMatchingTests

setFailOnNoMatchingTests

abstract fun setFailOnNoMatchingTests(failOnNoMatchingTests: Boolean): Unit

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

Parameters

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