# Run Tests

Run the tests, run one spec, run e2e locally or on Daytona, investigate a skipped spec.

- Repository: https://github.com/omnirush-ai/omnirush-gui (4595 stars)
- Category: Testing
- License: see repository
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add omnirush-ai/omnirush-gui --skill run-tests -g -a claude-code -y`
Codex: `npx skills add omnirush-ai/omnirush-gui --skill run-tests -g -a codex -y`
Cursor: `npx skills add omnirush-ai/omnirush-gui --skill run-tests -g -a cursor -y`
Gemini CLI: `npx skills add omnirush-ai/omnirush-gui --skill run-tests -g -a gemini-cli -y`

## Description

Run the tests, run one spec, run e2e locally or on Daytona, investigate a skipped spec. Use for executing @omnirush/testkit agent-first verification.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

```bash
pnpm evals:e2e <slug>
pnpm evals:pr specs/<name>.test.ts
```

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.

## Prepare local fallback

```bash
pnpm --filter @omnirush/types build
pnpm --filter @omnirush-ee/den-db build
pnpm --filter @omnirush/email build
pnpm dev:den:mysql
```

- Local `server()` requires MySQL at `127.0.0.1:3306`.
- Build those workspace dependencies before local Den; otherwise den-api imports
  can fail.
- If the checkout path contains spaces, set `OMNIRUSH_EVAL_SURFACES_DIR` to a
  space-free path before E2E tests. node-gyp and electron-rebuild require it.

## Choose one lane

- Run one app-less PR-lane test:

```bash
pnpm evals:pr specs/<name>.test.ts
```

- Run one app/Den-driving E2E test:

```bash
pnpm evals:e2e <name>
```

- The CLI owns placement and prints `placement: <daytona|local> (<reason>)`.

## Read the verdict

- Record the exact command, exit code, and passed/failed/skipped counts.
- Report each skip as `skipped, needs: X`; never call it passed. A green command
  containing skips makes the overall verdict `Incomplete`.
- Use `Passed`, `Incomplete`, or `Failed` for the overall result.

## Iterate, then cold-boot

- While iterating, reuse a warm Den with `OMNIRUSH_EVAL_DEN_API_URL`.
- Before declaring `Passed`, remove the reuse override and cold-boot through
  `server()` on the same commit.
- Inject secrets with `infisical run --silent --`; never print or echo values.

