What problem does it solve?
Writing unit tests that verify object collaboration rather than internal state is difficult to do consistently, especially when multiple agents or team members must share mock contracts and coordinate test execution across a codebase.
Core Features & Use Cases
- Outside-In TDD Workflow: Drives development from acceptance tests down to implementation using mock-first design with Jest-style mocks.
- Behavior Verification: Focuses tests on interactions and call sequences between collaborators instead of internal state assertions.
- Swarm Test Coordination: Shares mock contracts, synchronizes test execution, and aggregates coverage results across multiple testing agents.
- Use Case: When building a user registration service, define repository and notifier mocks first, verify the exact collaboration sequence, and share those contracts with integration-test agents for end-to-end validation.
Quick Start
Invoke the agent with $agent-tdd-london-swarm and ask it to write London School mock-driven tests for your service class and its collaborators.