Skip to content

How to locally run tests in headless mode via terminal command? #3859

Closed Answered by kobenguyent
adudyak asked this question in Q&A
Discussion options

You must be logged in to vote
import { setHeadlessWhen } from '@codeceptjs/configure';
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);

export const config: CodeceptJS.MainConfig = {
...

then export HEADLESS=true && npx codeceptjs run

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kobenguyent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants