If you have little experience writing tests, itβs easiest to start with a domain model (or at a higher level just below the user interface). When you manage the design of a domain model using TDD, you will know what the database schema should look like. It might be a good idea to postpone the introduction of the database into the system, as processing the database schema migration will add some development overhead. And it will also lead to a better design, because then the domain model will be better separated from the database level.
TDD, ( -) , ( GOOS). , . , (1) , (2) , (3) , . (Focused unit test - , , , , .)
Design for Integrability.