We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09d39ae commit 4d167d5Copy full SHA for 4d167d5
1 file changed
lib/listener/emptyRun.js
@@ -47,9 +47,10 @@ module.exports = function () {
47
output.print(output.styles.bold('npx codeceptjs run --debug --grep "' + results[0].item + '"'))
48
}
49
50
- if (process.env.CI) {
+ if (process.env.CI && !process.env.DONT_FAIL_ON_EMPTY_RUN) {
51
output.print()
52
- output.error('No tests were executed. Failing on CI')
+ output.error('No tests were executed. Failing on CI to avoid false positives')
53
+ output.error('To disable this check, set `DONT_FAIL_ON_EMPTY_RUN` environment variable to true in CI config')
54
process.exitCode = 1
55
56
0 commit comments