-
-
Notifications
You must be signed in to change notification settings - Fork 751
How to locally run tests in headless mode via terminal command? #3859
-
npx codeceptjs run - normal run
How to run in headless mode?
npm run codeceptjs:headless says "'HEADLESS' is not recognized as an internal or external command"
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
kobenguyent
Nov 30, 2023
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
-
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
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
kobenguyent
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment