TDD red-green-refactor workflow with 5-step process and quality gates.
!cat RLM/progress/.current-context.md 2>/dev/null || echo "No active task"
All implementation in RLM follows Test-Driven Development with a 5-step process.
RLM/tasks/active/TASK-XXX.mdRLM/specs/features/FTR-XXX/specification.mdRLM/specs/constitution.mdRLM/specs/design/ (UI code only)Write failing tests FIRST. Tests define the expected behavior.
describe('[Component/Module]', () => {
describe('[method/function]', () => {
it('should [expected behavior] when [condition]', () => {
// Arrange -- set up test data
// Act -- call the function/method
// Assert -- verify the result
});
});
});
Guidelines:
Write the minimum code to make tests pass:
npm testnpm run lintnpx tsc --noEmitRLM/progress/status.jsonactive/ to completed/type(scope): description (FTR-XXX, TASK-YYY)TODO, FIXME, HACK, XXX, PLACEHOLDER)vitest.config.ts or jest config)TASK-NNN format| Rating | Coverage | Action |
|---|---|---|
| Excellent | 90%+ | Ship it |
| Good | 80-89% | Acceptable |
| Fair | 70-79% | Add more tests |
| Poor | < 70% | Must improve |