Created
June 28, 2020 12:43
-
-
Save nofanto/2fe840a572fc94fa1cdec3983ed9db65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { setHeadlessWhen } = require('@codeceptjs/configure'); | |
// turn on headless mode when running with HEADLESS=true environment variable | |
// HEADLESS=true npx codecept run | |
setHeadlessWhen(process.env.HEADLESS); | |
exports.config = { | |
tests: './*_test.js', | |
output: './output', | |
helpers: { | |
Puppeteer: { | |
url: 'http://localhost:3000', | |
browser: 'chrome' | |
} | |
}, | |
include: { | |
I: './steps_file.js' | |
}, | |
bootstrap: null, | |
mocha: {}, | |
name: 'test', | |
plugins: { | |
retryFailedStep: { | |
enabled: true | |
}, | |
screenshotOnFail: { | |
enabled: true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment