
Run Tests
Run the tests, run one spec, run e2e locally or on Daytona, investigate a skipped spec.
Install
npx skills add different-ai/openwork --skill run-tests -g -a claude-code -y- Repository
- different-ai/openwork24.4k
- Category
- Testing
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 901 tokens
- Runs scripts
- No, instructions only
What it does
Run the tests, run one spec, run e2e locally or on Daytona, investigate a skipped spec. Use for executing @openwork/testkit agent-first verification.
Skill: Run Tests
Run the landable tree
- Check out the exact PR head that will land. After any rebase or cherry-pick, discard the old verdict and run again.
- Run one test at a time so each failure and ambient test evidence has one owner.
Choose the execution environment
pnpm evals:e2e <slug>
The CLI prints the placement and reason; copy that line into the report. Use
--local only when the user asks for local. --daytona requires Daytona. Never
switch lanes to turn a red Daytona run green.
Know what each placement runs before reading a verdict:
- Daytona (the default when the
daytonaCLI is logged in) buildsOPENWORK_EVAL_REF, which defaults todev, not your working tree. To test a branch, push it and exportOPENWORK_EVAL_REF=$(git rev-parse HEAD); add--strict-refso a mismatch fails instead of warning. --localruns your working tree. A spec whose world usesappWebstays in headless Chrome. A spec whose world usesdesktop(seed.desktop,app()) opens an Electron window that takes focus on this computer; run those on Daytona unless the user asks for a local window.
Run the core journey
The test every PR runs. Its world is a Freestyle VM, so this needs only the evals install and the Freestyle key:
FREESTYLE_API_KEY="$(infisical secrets get FREESTYLE_API_KEY --env dev --path /openwork-ops --plain --silent)" \
node evals/bin/evals.mjs core/core-chat.e2e.test.ts --local --engine v1 --surface web
It runs against the pushed HEAD commit; push first. After changing the world
itself, run node evals/scripts/check-freestyle-world.ts --base <sha> instead.
Prepare local fallback
pnpm --filter @openwork/types build
pnpm --filter @openwork-ee/den-db build
pnpm --filter @openwork/email build
pnpm dev:den:mysql


