Monorepos, Runtimes & System Console Guide¶
Ceptra is built to handle real-world repositories out of the box — from single-suite Playwright or CodeceptJS projects to polyglot TypeScript + Python monorepos.
Polyglot & Multi-Config Monorepo Auto-Resolution¶
Many teams organize Web, API, Mobile, and Python suites under one repository with separate configs:
my-qa-monorepo/
├── package.json
├── e2e-codecept/
│ ├── tests/api/codecept.conf.ts # CodeceptJS REST + JSONResponse
│ └── tests/web/codecept.conf.ts # CodeceptJS Playwright
├── e2e-playwright-ts/
│ └── playwright.config.ts # @playwright/test (chromium, firefox, webkit)
└── e2e-playwright-py/
├── pytest.ini # pytest-playwright (.venv / uv / poetry)
└── tests/test_checkout.py
How Ceptra handles this automatically¶
- Discovery: Scans standard configs across all supported frameworks (
codecept.conf.{ts,js,cjs,mjs},codecept.config.*,codecept.json,playwright.config.{ts,js,mjs,cjs},pytest.ini,pyproject.toml,tox.ini,setup.cfg),-c/--configtargets declared inpackage.jsonscripts, and nested configs up to 4 directories deep (ignoringnode_modules,.venv,.git, and build folders). - Per-File Config & Framework Matching: When you run, debug, or dry-run a specific file or scenario, Ceptra matches the file path against every discovered config's
tests/testDir/gherkin.featuresglob and directory ancestry — automatically choosing the owning config, framework runner (codeceptjs,playwright test, orpytest), and toolchain. - Environment Overrides Preserved: If you explicitly pin an environment config (e.g.
configs/staging.conf.tsvsconfigs/prod.conf.ts) that shares the sametestsglob, Ceptra respects your pinned choice. - Live Tab Sync: In auto-detect mode, switching tabs between suites automatically updates the active config, status bar helper badge (
Playwright,Playwright (Py),REST,Mobilewright), IntelliSense completions, and AI prompt context. - Manual Switching: Click the helper pill in the bottom-right status bar (or press
⌘⇧C) to inspect every discovered config with its helper summary, pin a config, or reset to Auto-Detect.
Node.js, Bun & Python Runtimes + Adaptive Terminal Suggestions¶
Switch JavaScript runtimes anytime from the Top Bar, Run Options, Settings (⌘,), or Run → JavaScript Runtime:
- Node.js (default for JS/TS):
- Resolves project-local
./node_modules/.bin/codeceptjsor./node_modules/.bin/playwright(with fallback to global binaries ornpx). - Supports Interactive CDP Step-Through Debugging (
⌘⇧B). - Includes Ceptra's opt-out ESM/CJS & TypeScript Compatibility Hook (enabled by default in Run Options): uses Node's synchronous
module.registerHooksso extensionless TS imports,tsconfig.jsonpath aliases, CommonJS getter exports (e.g.uuid), and ESMnode_modulespackages (e.g.flex-rest) work smoothly in bothrunandrun-workers. - CodeceptJS 4.x TypeScript tip: Under Node.js, CodeceptJS 4.x requires
require: ['tsx/esm']in each.tssuite'scodecept.conf.ts(along with"type": "module"inpackage.json). - Bun:
- Executes CodeceptJS or Playwright Test directly via
bun/bunxwith native TypeScript transpilation — notsxloader required. - Tip: Avoid mixing
npm installandbun installin the samenode_modulestree. If Bun hits a module interop error in a previouslynpm-installed repo, runrm -rf node_modules && bun install. - Python (
uv,poetry,.venv,pip): - Resolves project
.venv/bin/pytest,uv run pytest,poetry run pytest, or a custom Python binary configured in Settings (⌘,). - Automatically bootstraps
.venvand installsrequirements.txton 1-click dependency install when no virtualenv exists yet.
Adaptive Terminal Pre-Suggested Commands¶
The built-in Terminal drawer (⌘J) automatically detects your active runtime environment (uv.lock → uv, poetry.lock → poetry, .venv → local virtualenv, bun / pnpm / yarn / npm) and adapts all pre-suggested install, browser-install, and quick-command chips so you never see irrelevant commands (for example, Python workspaces show uv sync / .venv/bin/playwright install / pytest --co -q instead of npm).
Built-in Console vs macOS System Console¶
Choose how Ceptra executes tests, workers, package scripts, and custom commands:
- Built-in Console (default): Streams output directly into Ceptra's bottom drawer with live scenario status badges, gutter durations, interactive
pause()shell input, JUnit report parsing, and automatic Web/API Time-Travel Replay capture. - System Console: Launches runs in your macOS default terminal app — or any detected terminal you pick in Settings (
Terminal.app,iTerm,Ghostty,Warp,Kitty,WezTerm,Alacritty) — preserving login$PATH, native ANSI colors, custom environment variables, and handing off to an interactive shell after exit. - Press
⌘⇧Tanytime to open the active workspace folder directly in your chosen system terminal.
Parallel Execution (run-workers & run-multiple)¶
run-workers(⌘⇧W): Configure worker count, distribution strategy (--by pool,--by test, or--by suite),--serialpattern,--last-failed, and selected runs in CodeceptJS → Configure Workers….run-multiple(⌘⇧M): Automatically parses suites andsuite:browsertargets from your config'smultipleblock so you can run--allor pick exact browser combinations.