Please enable JavaScript.
Coggle requires JavaScript to display documents.
Testable Architecture (Testability (Decoupling business logic from…
Testable Architecture
Testability
Contract Tests
Consumer Driven Contract
Test Double
Dummy
Fake
Stub
Spy
Mock
Mocks != Stubs
loosely-coupled, well-encapsulated components or modules
Decoupling business logic from infrastructure
test at different levels
Maximum confidence
Minimum cost
run tests without going through the UI
Use some in-memory db instead of a real db
Ports and adapters
Hexagonal Architecture
Full stack Tests
Brittle
Hard to diagnose
Test Pyramid
different kinds of tests
lots of unit tests
A few tests that don’t go through all the heavy infrastructure components
just a few tests that go through the UI
Fast feedback
Fast tests can run frequently
fast feedback on what they are building
not losing focus or flow