Skip to content

ccjs run

Enhanced test runner — a colorized, streaming wrapper around codeceptjs run.

Usage

bash
ccjs run [options] [test-files...]

Flags

FlagShortDescription
--steps-sShow step-by-step execution output
--debugRun in debug mode (browser stays open on failure)
--verbose-vMaximum detail output
--grep <pattern>-gFilter tests by name or tag
--invertInvert grep — exclude matching tests
--shuffleRandomize test execution order
--reporter <name>-rMocha reporter to use
--override <json>-oOverride config values inline
--config <path>-cSpecify a custom config file

Examples

bash
# Run all tests
ccjs run

# Run with step-by-step output
ccjs run --steps

# Run in debug mode (browser stays open on failure)
ccjs run --debug

# Run a specific test file
ccjs run tests/login.test.ts

# Run tests matching a pattern
ccjs run --grep "login"

# Run tests by tag
ccjs run --grep "@smoke"

# Exclude slow tests
ccjs run --grep "@slow" --invert

# Shuffle test order (useful for finding order-dependent bugs)
ccjs run --shuffle

# Override config on the fly
ccjs run --override '{"helpers":{"Playwright":{"browser":"firefox"}}}'

TIP

For parallel execution, see ccjs run workers. For flaky test detection, see ccjs run rerun.

Released under the MIT License. Built with ❤️ on top of CodeceptJS.