Skip to content

Commit

Permalink
fixed on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 7, 2025
1 parent 68e7d6c commit 09d39ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runner/codecept_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
Expand Down
1 change: 1 addition & 0 deletions test/runner/interface_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 09d39ae

Please sign in to comment.