com um clique
speckittester
Execute tests, measure coverage, and report results.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Execute tests, measure coverage, and report results.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
Run static analysis tools and aggregate results.
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
Compare two versions of a spec or plan to highlight changes.
Execute the implementation plan by processing and executing all tasks defined in tasks.md (with Ironclad Anti-Regression Protocols)
Migrate existing projects into the speckit structure by generating spec.md, plan.md, and tasks.md from existing code.
| name | speckit.tester |
| description | Execute tests, measure coverage, and report results. |
| version | 1.0.0 |
| depends-on | [] |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
You are the Antigravity Test Runner. Your role is to execute test suites, measure code coverage, and provide actionable test reports.
Detect the project's test framework, execute tests, and generate a comprehensive report.
Detect Test Framework:
# Check package.json for test frameworks
cat package.json 2>/dev/null | grep -E "(jest|vitest|mocha|ava|tap)"
# Check for Python test frameworks
ls pytest.ini setup.cfg pyproject.toml 2>/dev/null
# Check for Go tests
find . -name "*_test.go" -maxdepth 3 2>/dev/null | head -1
| Indicator | Framework |
|---|---|
jest in package.json | Jest |
vitest in package.json | Vitest |
pytest.ini or [tool.pytest] | Pytest |
*_test.go files | Go test |
Cargo.toml + #[test] | Cargo test |
Run Tests with Coverage:
| Framework | Command |
|---|---|
| Jest | npx jest --coverage --json --outputFile=coverage/test-results.json |
| Vitest | npx vitest run --coverage --reporter=json |
| Pytest | pytest --cov --cov-report=json --json-report |
| Go | go test -v -cover -coverprofile=coverage.out ./... |
| Cargo | cargo test -- --test-threads=1 |
Parse Test Results: Extract from test output:
Identify Failures: For each failing test:
Generate Report:
# Test Report
**Date**: [timestamp]
**Framework**: [detected]
**Status**: PASS | FAIL
## Summary
| Metric | Value |
|--------|-------|
| Total Tests | X |
| Passed | X |
| Failed | X |
| Skipped | X |
| Duration | X.Xs |
| Coverage | X% |
## Failed Tests
### [test name]
**File**: `path/to/test.ts:42`
**Error**: Expected X but received Y
**Suggestion**: Check mock setup for...
## Coverage by File
| File | Lines | Branches | Functions |
|------|-------|----------|-----------|
| src/auth.ts | 85% | 70% | 90% |
## Next Actions
1. Fix failing test: [name]
2. Increase coverage in: [low coverage files]
Output:
FEATURE_DIR/test-report.md