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.
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
./.github/scripts/local-setup/kind-full-test.sh --include-test > $LOG_DIR/test-all.log 2>&1; echo "EXIT:$?"
Run Specific Tests
./.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
uv run pytest kagenti/tests/e2e/ -v -k "test_agent_simple_query"
Run from Worktree
.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 qualitytdd:kind- Full TDD loop on Kindkind:cluster- Create/destroy Kind cluster
Converted and distributed by TomeVault — claim your Tome and manage your conversions.