II.
LibraryProcess overview
Reference · livelib-process:shared--tdd-triplet
Composable TDD triplet component providing a factory for the three canonical overview
Composable TDD triplet component providing a factory for the three canonical TDD phases: write tests, run tests, validate results. Designed for injection into convergence and quality-gate processes that require a repeatable red-green-validate cycle.
Attributes
displayName
Composable TDD triplet component providing a factory for the three canonical
description
Composable TDD triplet component providing a factory for the three canonical
TDD phases: write tests, run tests, validate results. Designed for injection into
convergence and quality-gate processes that require a repeatable red-green-validate cycle.
libraryPath
library/processes/shared/tdd-triplet.js
example
```js
import { createTddTriplet, executeTddTriplet } from './tdd-triplet.js';
export async function process(inputs, ctx) {
const result = await executeTddTriplet(ctx, {
name: 'phase-4-cost-aggregation',
writeTests: {
prompt: 'Write unit tests for the cost aggregation module.',
targetPath: 'tests/cost-aggregation.test.ts',
context: { moduleUnderTest: 'src/cost-aggregation.ts' },
},
runTests: {
command: 'npm test -- --grep cost-aggregation',
timeout: 90000,
},
validate: {
expectAllPass: true,
minCoverage: 80,
customChecks: ['All edge cases for zero-cost inputs are covered'],
},
retryPolicy: {
maxRetries: 2,
retryableExitCodes: [1],
},
}, { feature: 'cost-aggregation' });
return { success: result.passed, ...result };
}
```
usesAgents
- test-writer
- test-validator
Outgoing edges
lib_applies_to_domain1
- domain:software-engineering·DomainSoftware Engineering
lib_covers_topic2
- topic:test-driven-development·TopicTest-Driven Development
- topic:code-review-best-practices·TopicCode Review Best Practices
lib_implements_workflow3
- workflow:code-review·Workflow
- workflow:feature-development·Workflow
- workflow:release-management·Workflow
lib_involves_role3
- role:backend-engineer·RoleBackend Engineer
- role:tech-lead·RoleTech Lead
- role:qa-engineer·RoleQA Engineer
lib_requires_skill_area2
- skill-area:code-review-practice·SkillAreaCode Review Practice
- skill-area:e2e-testing·SkillAreaEnd-to-End Testing
Incoming edges
None.