Skip to content
Skills Library
Programming · Testing

e2e-testing

/e2e-testing

Write, run, and debug Centaur's end-to-end tests under e2e/. Use when adding or changing an e2e scenario, running the e2e stack locally, or investigating a failing e2e CI job.

Repository
centaur ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Write, run, and debug Centaur's end-to-end tests under e2e/. Use when adding or changing an e2e scenario, running the e2e stack locally, or investigating a failing e2e CI job.

Original author description

Write, run, and debug Centaur's end-to-end tests under e2e/. Use when adding or changing an e2e scenario, running the e2e stack locally, or investigating a failing e2e CI job.

How it works

  1. How the system works
  2. Running
  3. Writing a scenario
  4. Debugging failures
Original SKILL.md headings · 41 lines, 469 words
SKILL.md preview
---
name: e2e-testing
description: "Write, run, and debug Centaur's end-to-end tests under e2e/. Use when adding or changing an e2e scenario, running the e2e stack locally, or investigating a failing e2e CI job."
---

# Centaur E2E Testing

## How the system works

`e2e/stack.sh` deploys the real chart's Slack path (Postgres, console, api-rs, slackbotv2, sandboxes, per-sandbox iron-proxies) to a dedicated kind cluster, with two fakes standing in for the outside world:

- `e2e/fakes/fake-slack.ts`: a stateful Slack Web/Events/Interactivity API. slackbotv2 runs unmodified against it.
- `e2e/fakes/model-server.ts`: a scripted model provider. CoreDNS sends provider hostnames to it, so real harnesses reach it through iron-proxy. It answers by a token in the user's message and records every request.

Tests in `e2e/tests/*.test.ts` run under `bun test` on the host and reach the fakes, Postgres, and api-rs through NodePorts. `e2e/lib/index.ts` is the test vocabulary: `slack`, `model`, `api`, `cluster`, `workflows`, `ironControl`, and `Thread`. Shared Slack identities live in `e2e/fakes/slack-fixture.ts`. Stack configuration lives in `e2e/infra/`.

CI (`.github/workflows/e2e.yml`, called by `publish-images.yml` and runnable manually against any published tag) runs every scenario against the published images with API keys, and runs `harnesses.test.ts` alone in subscription (`access_token`) mode.

## Running

```bash
e2e/stack.sh up                                   # build images from the tree, deploy
e2e/stack.sh test                                 # all scenarios
e2e/stack.sh test e2e/tests/turns.test.ts         # one file
e2e/stack.sh logs                                 # pods, events, component logs
e2e/stack.sh down
```

The script uses a private kubeconfig, never the ambient context. Rerun `up` after changing service code. `CENTAUR_E2E_IMAGE_TAG` pulls published images, and `CENTAUR_E2E_AUTH_MODE=access_token` selects subscription auth. Run `down` before switching from `access_token` back to `api_key`.

## Writing a scenario

- Act only through the doors a user or operator has: Slack for input and visible output, durable session tables, recorded model requests, api-rs operator routes, and Kubernetes faults. Do not reach into service internals.
- Script each turn with `model.says(...)` or `model.fails(...)`, then drive it with `slack.mention(...)`, `thread.mention(...)`, and `thread.nextTurn()`. `nextTurn` waits for a terminal execution and exactly one finished Slack reply.
- Assert observable outcomes: `turn.reply`, `turn.execution.status`, `turn.sandbox`, and `turn.request` (what the harness actually sent the provider).
- Use `test.concurrent` with a `turnTimeoutMs`-based timeout. Each test makes its own thread and script tokens, so tests must not share state.
- Wait with `eventually(...)`, not fixed sleeps. Use `delayMs` plus `thread.inFlight()` to keep a turn running.
- Put a short comment at the top of each file stating the behavior it guarantees. Add a scenario to the existing file that covers that area before creating a new file.
- Extend `e2e/lib` or a fake only when a scenario needs a new capability, and name helpers in user terms. When a test needs new stack configuration, add it to `e2e/infra/values.yaml`, and keep fixture values aligned with `stack.sh`.
- E2E scenarios are slow. Cover cross-service behavior here and leave logic that a unit test can reach to unit tests.

## Debugging failures

Failures name the execution and the replies seen. Next, check `e2e/stack.sh logs` (CI dumps the same output), then the `session_executions` and `session_events` rows for the thread key, then the model server's recorded requests.

Versions

RepositoryScoreLicence
This page · paradigmxyz/centaur100MIT
ericrisco/rsc-harness100MIT
meteor/meteor100MIT
mthines/agent-skills100MIT
qwenlm/qwen-code100Apache-2.0
Sanit-mann/The-Insectoids100MIT
jelvodev/yaap100MIT
drvoss/everything-copilot-cli100MIT
CrowdStrike/foundry-skills100MIT

Database snapshot: 13.11.2026 · package version 62bab42ed261 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 96testing-workflow
    Use when writing, running or debugging tests at any level.
  • 90centaur
    Use an authenticated Centaur MCP deployment to discover and call team-approved tools. Use when a task requires Centaur, its tool catalog, or the user's Centaur identity and permissions.
  • 90E2E Testing
    Run, debug, and fix Playwright E2E tests locally. Use when writing new E2E tests, debugging failing tests, or iterating on test fixes before pushing to CI.
  • 100harness-development
    Add, modify, or debug Centaur harness-server backends in crates/harness-server. Use when adding a new harness CLI, changing how Codex, Claude Code, Amp, Pi, Nanocodex, or Hermes output is normalized, or investigating harness streaming, interrupt, resume, model, or reasoning-effort behavior.
  • 100running-e2e-tests
    Execute end-to-end tests covering full user workflows across frontend and backend. Use when performing specialized testing. Trigger with phrases like "run end-to-end tests", "test user flows", or "execute E2E suite".
  • 100running-e2e-tests
    Execute end-to-end tests covering full user workflows across frontend and backend. Use when performing specialized testing. Trigger with phrases like "run end-to-end tests", "test user flows", or "execute E2E suite".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.