32. MAKES YOUR LIFE EASIER
I must set up a Test DB
What if someone else add sh*t in your test DB?
Test DB is growing and growing…
What if you loose you DB connection?
What if you loose it all?
33. NO DEPENDENCE ON EXTERNAL STATE
• the tests must run the same
way every time they run
34. IDEMPOTENT TEST
you are able to rerun something because the process of
running it did not change its state.
45. ONE BUG = ONE MISSING TEST
No unit test can tell you that you need more tests…
Exploration can.
46. THERE’S ALWAYS A PATTERN
To be more and more isolated (SRP/OCP/LSP/ISP/DI)
• Factory
• Facade
• Visitor
• IoC ( Depency Injectors)
• ….
• MVP
• Humble Dialog ….
47. ALL IS A MATTER OF CONCEPTS
Abstraction & Architecture
48. CHANGE THE WAY YOU CODE
ALWAYS CODE AS YOU TEST: in isolation
-> Domain knows nothing about the infrastructure.