diff --git a/test/runner/codecept_test.js b/test/runner/codecept_test.js index 5fc2b5f20..8141179e2 100644 --- a/test/runner/codecept_test.js +++ b/test/runner/codecept_test.js @@ -173,7 +173,8 @@ describe('CodeceptJS Runner', () => { debug(stdout) stdout.should.include('0 passed') stdout.should.include('No tests found by pattern: /@feature_grep/') // feature - assert(!err) + // fails on CI, but not on local + assert(process.env.CI ? err : !err) done() }) }) diff --git a/test/runner/interface_test.js b/test/runner/interface_test.js index 72d8023bc..daa40b342 100644 --- a/test/runner/interface_test.js +++ b/test/runner/interface_test.js @@ -156,6 +156,7 @@ describe('CodeceptJS Interface', () => { expect(output).toContain('OK') expect(output).toContain('0 passed') expect(output).toContain('2 skipped') + console.log(err) if (process.env.CI) { // we notify that no tests were executed, which is not expected on CI expect(err).toBeTruthy()