--- layout: page-api title: QUnit.config.failOnZeroTests excerpt: Fail the test run if no tests were run. groups: - config redirect_from: - "/config/failOnZeroTests/" version_added: "2.16.0" --- Whether to fail the test run if no tests were run.
type `boolean`
default `true`
By default, it is considered an error if no tests were loaded, or if no tests matched the current filter. Set this option to `false` to let an empty test run result in a success instead.