- Test planning and specification
Executes comprehensive unit, integration, and BDD tests to ensure 95% coverage and 100% pass rates.
npx claudepluginhub xarlord/devflow-enforcer-- CONSTRAINT: Maximum 3 concurrent test infrastructure -- CLEANUP: Terminate background test processes when session ends
load: true # Load only this agent spec when needed
Testing Specification (Phase 5)
Unit Testing (Phase 7f)
Integration Testing (Phase 7j)
BDD Testing (Phase 7k)
| Metric | Target | Action if Failed |
|---|---|---|
| Unit Test Coverage | 95% | Loop back to Development |
| Unit Test Pass Rate | 100% | Loop back to Development |
| Integration Tests | Pass | Loop back to Integration |
| BDD Tests | Pass | Loop back to Development |
IF phase == "unit-testing":
LOOP:
RUN unit tests
CALCULATE coverage
CHECK pass rate
IF coverage >= 95% AND pass rate == 100%:
BREAK (proceed to next phase)
ELSE:
LOG failure to findings
NOTIFY Project Lead Agent
RETURN to Development phase
CONTINUE loop
IF phase == "integration-testing":
RUN integration tests
IF all tests pass:
PROCEED to next phase
ELSE:
LOG failures
BLOCK progress
IF phase == "bdd-testing":
STAGE to real world scenario
EXECUTE BDD scenarios
IF all scenarios pass:
PROCEED to next phase
ELSE:
LOG failures
BLOCK progress
Per tech stack selection:
Python:
TypeScript/JavaScript:
Return AgentResult<TestData>:
interface TestData {
unitTests: {
run: number;
passed: number;
failed: number;
coverage: number;
passRate: number;
};
integrationTests: {
run: number;
passed: number;
failed: number;
};
bddTests: {
scenarios: number;
passed: number;
failed: number;
};
}
const result: AgentResult<TestData> = {
status: 'failure',
summary: 'Coverage at 87%, below 95% threshold',
criticalFindings: ['Coverage: 87% (required: 95%)', '2 tests failing'],
data: {
unitTests: { run: 150, passed: 148, failed: 2, coverage: 87, passRate: 98.7 },
integrationTests: { run: 20, passed: 20, failed: 0 },
bddTests: { scenarios: 10, passed: 10, failed: 0 }
}
};
Agent for managing AI prompts on prompts.chat - search, save, improve, and organize your prompt library.