smoke-test
运行 API 和 UI 冒烟测试以验证 Everruns 系统是否正常工作。当您需要在更改后测试系统功能、验证部署或解决问题时,请使用此技能。支持基于 Docker 和无 Docker 环境。
📖 中文导读:运行 API 和 UI 冒烟测试以验证 Everruns 系统是否正常工作。当您需要在更改后测试系统功能、验证部署或解决问题时,请使用此技能。支持基于 Docker 和无 Docker 环境。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: smoke-test description: Run smoke tests to verify the Everruns system works correctly.
Smoke Tests
Verify the system is working after changes.
Quick Start
# Start server (no Docker needed, --no-watch for faster startup)
just start-dev --no-watch
# Run tests
cargo test
Checklist
1. Start Server
just start-dev --no-watch # In-memory, no Docker, fast startup
# or: just start-all --no-watch # With PostgreSQL persistence
2. Health Check
curl -s http://localhost:9000/health | jq
# Expected: {"status": "ok", ...}
3. Run Tests
# Unit + integration tests
cargo test
# Durable engine tests
cargo test -p everruns-durable --lib
4. UI Check
curl -s -o /dev/null -w "%{http_code}" http://localhost:9100
# Expected: 200 or 307
5. API Endpoint Test
ORG="org_00000000000000000000000000000001"
# Create agent
curl -s -X POST "http://localhost:9000/v1/orgs/$ORG/agents" \
-H "Content-Type: application/json" \
-d '{"name": "Test", "system_prompt": "You are helpful."}' | jq '.id'
Full API Reference
See http://localhost:9000/swagger-ui/ for complete API documentation.
Troubleshooting
# Check ports
lsof -i :9000 # API
lsof -i :9100 # UI
# View logs (DEV MODE runs in foreground)
# Ctrl+C to stop, then restart with: just start-dev