Commands
init
checksum/ folder containing:
checksum.config.ts— project configuration (base URL, browser settings, etc.)playwright.config.ts— Playwright configuration pre-wired for Checksumtsconfig.json— TypeScript configuration for the test directory- Login helper — a reusable authentication setup
- Example test — a starter test file to verify everything works
test
Examples
Affected tests only (--cksm-affected)
Run only the Checksum tests impacted by files changed since a git base ref. The CLI:
- Computes changed files between your current checkout and the base ref
- Asks Checksum which tests are affected by those files
- Runs Playwright with an internal
--grepover those test IDs
CI examples
- Cannot be combined with
-g/--grep(affected mode sets grep internally) - Cannot be combined with
--cksm-rerun-failed - Shallow clones without enough history may fail — fetch depth must include the merge base with your target ref
Re-run non-passing tests (--cksm-rerun-failed)
Re-run only the test files that did not pass in a previous Checksum run (failed or recovered), without executing the full suite.
Checksum fetches per-test results from the API, resolves failing file paths, and passes them to Playwright. If every test in the run passed, the command exits successfully with nothing to run.
Constraints
- Cannot be combined with
--cksm-affectedor-g/--grep
dotenv
.env file. This is useful for syncing secrets and configuration that your tests depend on without committing them to source control.
Flags
tsconfig
tsconfig.json file inside the checksum/ directory. Run this if you need to reset or refresh the TypeScript configuration after an upgrade.
eslint
checksum/ directory. When run, it will optionally install the required devDependencies:
eslinttypescripttypescript-eslint
show-report
postinstall
npm install and does not need to be run manually in most cases.
Configuration
Thechecksum.config.ts file in your checksum/ directory controls project-level settings such as the base URL, browser options, authentication flows, and more.
For the full configuration reference, see Repo & CLI Setup.