# Testrun Kind

> Run E2E tests on local Kind cluster Use when this capability is needed.

- Skill: `tomevault-io/testrun-kind` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/testrun-kind`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/testrun-kind/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/testrun-kind

---


# Run Tests on Kind

> **Auto-approved**: All test execution on Kind is auto-approved.

## Context-Safe Execution (MANDATORY)

**Test output MUST go to files.** Test runs produce hundreds of lines.

```bash
export LOG_DIR="${LOG_DIR:-${WORKSPACE_DIR:-/tmp}/kagenti-tdd}"
mkdir -p "$LOG_DIR"

# Pattern: redirect test output
command > $LOG_DIR/test-run.log 2>&1; echo "EXIT:$?"
# On failure: Task(subagent_type='Explore') with Grep to find FAILED|ERROR
```

## When to Use

- Running E2E tests locally on Kind
- Quick validation before pushing to CI
- Debugging test failures with live cluster

## Run All Tests

```bash
./.github/scripts/local-setup/kind-full-test.sh --include-test > $LOG_DIR/test-all.log 2>&1; echo "EXIT:$?"
```

## Run Specific Tests

```bash
./.github/scripts/local-setup/kind-full-test.sh --include-test --pytest-filter "test_agent" > $LOG_DIR/test-filtered.log 2>&1; echo "EXIT:$?"
```

## Run with pytest Directly

```bash
uv run pytest kagenti/tests/e2e/ -v -k "test_agent_simple_query"
```

## Run from Worktree

```bash
.worktrees/my-feature/.github/scripts/local-setup/kind-full-test.sh --include-test
```

## Environment

| Variable | Value |
|----------|-------|
| Agent URL | `http://localhost:8000` (port-forward) |
| Keycloak | `http://keycloak.localtest.me:8080` |
| MLflow | Disabled in Kind |

## Related Skills

- `test:run-hypershift` - Run on HyperShift (includes MLflow tests)
- `test:review` - Review test quality
- `tdd:kind` - Full TDD loop on Kind
- `kind:cluster` - Create/destroy Kind cluster

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/kagenti) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

