Basinfy/Basinfy-SaaS-Studio / .agents/skills/saas-smoke-check
saas-smoke-check
UnverifiedRun critical-path automated test suite under timeout as a pre-QA smoke gate.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.2 KB |
| references/1-detect-setup.md | markdown | 5.6 KB |
| references/2-run-tests.md | markdown | 1.7 KB |
| references/3-coverage.md | markdown | 1.6 KB |
| references/4-manual-checks.md | markdown | 5.7 KB |
| references/5-report.md | markdown | 6.7 KB |
| references/6-write-gate.md | markdown | 4.6 KB |
references/2-run-tests.md
View on GitHub# Automated Test Execution & Smoke Gate
Run the automated test suite configured in `commands.test` or the default test command for the stack.
Wrap execution in a timeout (`timeout 900 ...`): **a timeout (exit 124) is a gate FAILURE, never a pass**.
## Stack-Specific Test Runners
### Next.js (TypeScript / React)
Check `package.json` for test scripts.
```bash
# Unit & Integration test suite
npm test -- --run --passWithNoTests 2>&1
# TypeScript compilation check
npm run build 2>&1
```
- **Exit 0**: All tests passed: PASS. (If output indicates `0 tests`, verdict is `NOT ASSESSED — no tests found`).
- **Non-zero exit**: Test failure or build compile error: FAIL.
### FastAPI (Python)
Check for `pytest` or `tests/` directory:
```bash
# Run pytest with concise traceback
pytest tests/ -v --maxfail=5 2>&1
```
- **Exit 0**: All tests passed: PASS.
- **Exit 1**: Tests failed: FAIL.
- **Exit 2**: Interrupted or command error: FAIL.
- **Exit 5**: No tests collected: `NOT ASSESSED — no tests found`.
### Cloudflare Workers & Serverless
```bash
# Vitest / Miniflare runner
npm test -- --run 2>&1
```
- **Exit 0**: All worker unit tests passed: PASS.
- **Non-zero exit**: FAIL.
### Go Microservices
```bash
go test -v ./... 2>&1
```
- **Exit 0**: All unit tests passed: PASS.
- **Non-zero exit**: FAIL.
## Unknown or Unconfigured Stack
If stack is not configured in `project.yaml`:
"Stack not configured in `project.yaml`. Run `/saas-setup-stack` to specify stack, then re-run `/saas-smoke-check`."
## Test Results Extraction
Parse runner output and extract:
- Total tests run
- Passing count
- Failing count
- Names of failing tests (up to 10)
- Any uncaught exception or fatal error
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate 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 existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |