compressed
// * BDD Style: `describe/it` syntax for tests
$ git log --oneline --stat
stars:2
forks:0
updated:February 17, 2026
SKILL.mdreadonly
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