Skip to content

Commit 09d39ae

Browse files
author
DavertMik
committed
fixed on ci
1 parent 68e7d6c commit 09d39ae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/runner/codecept_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ describe('CodeceptJS Runner', () => {
173173
debug(stdout)
174174
stdout.should.include('0 passed')
175175
stdout.should.include('No tests found by pattern: /@feature_grep/') // feature
176-
assert(!err)
176+
// fails on CI, but not on local
177+
assert(process.env.CI ? err : !err)
177178
done()
178179
})
179180
})

test/runner/interface_test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ describe('CodeceptJS Interface', () => {
156156
expect(output).toContain('OK')
157157
expect(output).toContain('0 passed')
158158
expect(output).toContain('2 skipped')
159+
console.log(err)
159160
if (process.env.CI) {
160161
// we notify that no tests were executed, which is not expected on CI
161162
expect(err).toBeTruthy()

0 commit comments

Comments
 (0)