Our review
This skill enforces a mandatory TDD/BDD testing strategy with actual test execution and coverage verification before commits.
Strengths
- Ensures at least 80% code coverage
- Uses clear, readable BDD syntax
- Requires real test execution with output evidence
- Promotes deterministic and fast tests
Limitations
- May slow down initial development iterations
- Requires strict team discipline
- Does not cover complex UI testing
When building production-critical features where reliability and regression prevention are paramount.
During rapid exploration or prototyping phases where requirements are unclear and change often.
Security analysis
SafeThe skill instructs running standard test commands (pytest, npm test) and does not contain destructive, exfiltrating, or obfuscated instructions. No external payloads, no disabling of safety measures. Execution of tests is a normal development activity.
No concerns found
Examples
Write a BDD test for the login feature before implementing the actual login logic. Use describe/it syntax and test that a valid user can log in with correct credentials.Run the existing test suite with coverage reporting for the backend Python code using pytest with --cov=app, then show the test execution output and confirm coverage is at least 80%.Create failing tests for a new API endpoint /api/users that returns a list of users. Then implement the endpoint to make the tests pass, ensuring all tests run successfully with ≥80% coverage.Mandatory TDD/BDD Testing Strategy
Core Principles
- BDD Style:
describe/itsyntax for tests - Test-First: Write failing tests before implementation
- Deterministic: Use data-testid, role, label selectors
- Fast & Light: Prefer unit/integration tests
Example BDD Structure
describe('Calculator', () => {
it('adds two positive numbers', () => {
expect(add(5, 7)).to.equal(12);
});
});
Mandatory Test Execution
Requirements
- Actually run test suite with coverage
- Confirm all tests pass
- Verify ≥80% coverage
- Include test execution output
Backend (Python)
python3 -m pytest tests/ -v --cov=app --cov-report=term-missing
Frontend (TypeScript)
npm test -- --coverage
Evidence Requirement
## Test Execution Evidence
### Command:
`pytest tests/test_showcase_videos.py -v --cov=app.api`
### Output:
20 passed in 3.42s
Coverage: 87%
Enforcement
- MANDATORY with NO EXCEPTIONS
- Tests run LOCALLY before commit
- Test output in PR descriptions
- Actual coverage percentages required
Violation Consequences
- Broken code in production
- Undetected bugs
- Loss of test suite confidence
Reference
references/bdd-patterns.mdreferences/coverage-requirements.md
TDD Red-Green-Refactor
Testing
Skill that guides Claude through the complete TDD cycle.
Web Accessibility Audit
Testing
Performs a comprehensive web accessibility audit following WCAG standards.
UAT Test Case Generator
Testing
Generates structured and comprehensive user acceptance test cases.