From 09d39ae4ef9f4fd8b29dd6d7eb9964a0b5466caf Mon Sep 17 00:00:00 2001 From: DavertMik Date: Tue, 7 Jan 2025 21:59:02 +0200 Subject: [PATCH] fixed on ci --- test/runner/codecept_test.js | 3 ++- test/runner/interface_test.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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()