smoke-test
БесплатноБез исполняемых скриптовНе проверенSmoke testing patterns for verifying backend implementations end-to-end. Covers build verification, service health checks, authentication flows, test data…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Smoke Testing Core Knowledge
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:smoke-testingfor comprehensive documentation.
When NOT to Use This Skill
- Unit Testing — Use
vitest,jest,junit, orpytestfor isolated unit tests - E2E Browser Testing — Use
playwrightorcypressfor browser-driven end-to-end tests - Static API Contract Validation — Use
integration-validator-expertfor OpenAPI schema validation without running services - Load/Performance Testing — Use
performance-expertfor benchmarks and profiling
Stack Detection Table
| Marker File | Stack | Build Command | Test Command | Run Command | Default Port |
|---|---|---|---|---|---|
pom.xml |
Spring Boot | ./mvnw clean compile -q |
./mvnw test -q |
./mvnw spring-boot:run & |
8080 |
build.gradle |
Spring Boot (Gradle) | ./gradlew build -x test |
./gradlew test |
./gradlew bootRun & |
8080 |
package.json + @nestjs/core |
NestJS | npm run build |
npm test |
npm run start:dev & |
3000 |
package.json + express |
Express | npm run build |
npm test |
npm start & |
3000 |
requirements.txt + fastapi |
FastAPI | — | pytest |
uvicorn main:app --reload & |
8000 |
go.mod |
Go | go build ./... |
go test ./... |
go run . & |
8080 |
Cargo.toml |
Rust | cargo build |
cargo test |
cargo run & |
8080 |
*.csproj |
.NET | dotnet build |
dotnet test |
dotnet run & |
5000 |
Health Check Endpoints
| Stack | Endpoint | Dependency |
|---|---|---|
| Spring Boot | /actuator/health |
spring-boot-starter-actuator |
| NestJS | /health |
@nestjs/terminus (or custom) |
| FastAPI | /health or /docs |
Custom route |
| Express | /health or /api/health |
Custom route |
| Go | /health or /healthz |
Custom handler |
| .NET | /health |
Microsoft.Extensions.Diagnostics.HealthChecks |
Port Detection Strategy
Search in order:
CLAUDE.md— explicit port mentionsapplication.yml/application.properties→server.portpackage.jsonscripts →--portflag.env/.env.local→PORT=- Fall back to stack default from table above
Authentication Patterns
JWT Login Flow
POST /api/auth/login
Content-Type: application/json
{"email": "{email}", "password": "{password}"}
→ Response: {"token": "eyJ...", "refreshToken": "..."}
→ Use: Authorization: Bearer {token}
Credential Discovery
Search in order:
- Test files → Grep for
login,password,testUserinsrc/test/ortest/ - Config files →
application-test.yml,.env.test,test.env - Seed/fixture files →
data.sql,seed.ts,fixtures/ - Known defaults →
admin/admin,[email protected]/password
Detecting Auth Requirement
No auth needed if:
- No security dependencies in
pom.xml/package.json - Health endpoint returns 200 without token
- No
@PreAuthorize,@UseGuards,Depends(get_current_user)in controllers
Log File Locations
| Stack | Typical Paths | Config Key |
|---|---|---|
| Spring Boot | logs/, target/ |
logging.file.path in application*.yml |
| NestJS | logs/ |
LoggerModule config or winston transport |
| FastAPI | logs/ |
logging.config in Python files |
| Docker | Container stdout | Access via docker logs or docker-manager MCP |
Fallback chain: /tmp/smoke-test-app.log (stdout redirect) → Glob **/logs/*.log → Docker container logs
HTTP Verification Patterns
Positive Cases
| Method | Expected Status | Body Check |
|---|---|---|
| GET (list) | 200 | Array response, non-empty |
| GET (by ID) | 200 | Object with matching ID |
| POST (create) | 201 | Created object with generated ID |
| PUT (update) | 200 | Updated fields reflected |
| DELETE | 204 or 200 | Subsequent GET returns 404 |
Negative Cases
| Test | Expected Status | Meaning |
|---|---|---|
| No auth token | 401 | Unauthorized |
| Invalid ID (e.g. 999999) | 404 | Not Found |
| Invalid body (missing required field) | 400 | Bad Request |
| Wrong HTTP method | 405 | Method Not Allowed |
Anti-Patterns
| Anti-Pattern | Why It's Bad | Solution |
|---|---|---|
| Testing against production DB | Data corruption risk | Use test profile or Docker container |
| Hardcoding test credentials | Security risk, breaks across envs | Read from env/test config files |
| Skipping cleanup | Leftover processes and test data | Always kill PID, prefix data with smoke-test-* |
| Testing all endpoints | Scope creep, slow | Focus on recently implemented endpoints |
| Ignoring log errors | Hidden bugs slip through | Always check logs in Phase 7 |
| Retrying without fixing | Wastes iterations | Delegate fix before retrying |
Quick Troubleshooting
| Problem | Likely Cause | Solution |
|---|
Установить smoke-test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditВложенные файлы
FAQ
Что делает скилл smoke-test?
Smoke testing patterns for verifying backend implementations end-to-end. Covers build verification, service health checks, authentication flows, test data setup, and HTTP endpoint validation. USE WHEN: user mentions "smoke test", "verify implementation", "test endpoints", "check if it works", "end-to-end verification", "does it actually run" DO NOT USE FOR: Unit test writing - use `vitest` or `junit`; E2E browser tests - use `playwright`; Load testing - use `performance-expert`; Static API validation - use `integration-validator-expert`
Как установить скилл smoke-test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл smoke-test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic