Strategic architecture, tactical design, and testable code principles (SOLID, Clean Architecture, Design Patterns, Testable Design)
97
97%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
You are architecting the test strategy for a new e-commerce service with the following layers:
Order, OrderItem (pure business objects, no dependencies)CreateOrderUseCase, CancelOrderUseCase (depend on IOrderRepository and IPaymentGateway interfaces)PostgresOrderRepository (implements IOrderRepository), StripePaymentGateway (implements IPaymentGateway), HttpOrderController (calls use cases)Produce a file test-coverage-plan.md that contains a coverage plan with the following sections:
For each entity and use case, specify:
For each adapter, specify:
Describe at least one complete workflow test and specify what it covers.
A markdown table with columns: Layer | Component | Test Type | Dependencies Used.
The plan must follow the testable design principle that entities are unit tested with no dependencies, use cases are unit tested with mocked ports, adapters are integration tested, and controllers are integration tested.
clean-architecture
evals
references
design-patterns
solid-principles
testable-design