Skip to content

Instantly share code, notes, and snippets.

@nofanto
Created June 28, 2020 12:43
Show Gist options
  • Save nofanto/2fe840a572fc94fa1cdec3983ed9db65 to your computer and use it in GitHub Desktop.
Save nofanto/2fe840a572fc94fa1cdec3983ed9db65 to your computer and use it in GitHub Desktop.
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