TestCafe
$ testcafe Official Med RiskTestCafe (testcafe) runs end-to-end web tests by proxying and instrumenting pages directly in Node.js without needing WebDriver or Selenium binaries. Passing chrome:headless with -r json:report.json executes headless tests cleanly and exports structured JSON results.
npm install -D testcafe Deterministic proxy-based E2E test suite runner with -r json reporting; serves automated regression suites rather than ad-hoc MCP browsing.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Built-in -r json stdout/file reporter, :headless browser suffix, and --list-browsers inspection.
- Supports
chrome:headless,-r json, and--list-browsers
Runs deterministic local/CI test suites with auto-waiting and isolated local proxy sessions.
- Read-only unless tests mutate target app; local report files only
Zero-WebDriver install via npm/npx across macOS, Linux, and Windows; uses already-installed local browsers.
- No separate WebDriver binaries needed; uses local Chrome/Firefox/Edge
Automatic waiting and multi-browser execution (-c concurrency), though proxy architecture can hit edge cases on complex auth/CSP flows.
- Supports
-cconcurrency and automatic element waiting
Official DevExpress/testcafe project under MIT license.
- Official
DevExpress/testcafeMIT repository
Thorough official CLI reference documenting every reporter, browser alias, and flag.
- Complete CLI docs at
testcafe.io/documentation
Security, Auth & Guardrails
Stores optional test role credentials in user test scripts or .testcaferc.json; CLI itself stores no secrets.
Free, MIT open-source Node.js package (DevExpress TestCafe Studio GUI is separate/commercial).
# TestCafe Agent Rules - Always use `<browser>:headless` (e.g., `chrome:headless`) and `-r json` (or `-r json:<file>`). - Never pass `--live` (watch mode) inside one-shot agent runs.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx testcafe chrome:headless tests/ -r json
Runs E2E tests in headless Chrome and prints structured JSON test results to stdout (-r json).
npx testcafe --list-browsers
Enumerates installed browser aliases available on the current machine.
Controlled Writes & Previews
npx testcafe chrome:headless tests/ -r spec,json:report.json
Displays spec progress while writing machine-readable JSON results to report.json.
Strengths for Agents
- + Zero WebDriver dependency—auto-discovers installed browsers via
--list-browsers. - + Built-in
-r jsonreporter works cleanly on stdout or to a file (-r json:report.json).
Caveats & Pitfalls
- ! URL-rewriting proxy (
hammerhead) can occasionally conflict with strict CSP or cross-origin auth flows compared to native CDP tools. - ! Passing
--livestarts a persistent file-watching loop.