Skip to main content
Version: 5.6

Fail On Empty Test Suite

To ensure that a project always executes at least one test, you can enable failOnEmptyTestSuite in project config.

If this is set to true and a module has no tests executed then the build will fail.

class ProjectConfig : AbstractProjectConfig() {
override val failOnEmptyTestSuite = true

A module is considered empty if no tests are executed regardless of whether tests are defined. This is useful to catch scenarios were tests are being filtered out erroneously, such as by environment specific settings.