Three-and-a-half Ways of Testing your Repositories
Daniel Raniz Raneland - a year ago
Domain Driven Design teaches us to separate the repository (our data storage inferface) from the rest of the model in order to prevent our storage interface from contaminating the rest of our domain model. So, with the data layer successfully separated from the rest of the domain model into its own repository, now comes the time to test it - a task that may seem rather daunting. In this talk I will use Test Driven Development to show how to use mocking frameworks to mock datastores at both the API-, and server-level, and show techniques to test against a real database as well as how we can make the tests more portable by leveraging containers when appropriate.
Jobs with related skills
Team Lead Backend (w/m/d)
aedifion GmbH
·
1 month ago
Senior Software Developer (Rust/Python/AI/RAG)
basebox GmbH
·
1 month ago
Utting am Ammersee, Germany
Hybrid
Research Assistant for the area of Software Development
Fraunhofer-Institut für Integrierte Schaltungen IIS
·
10 days ago
Dresden, Germany
Hybrid
Virtuoso EDA Software Engineer and Administrator
Fraunhofer-Institut für Integrierte Schaltungen IIS
·
10 days ago
Erlangen, Germany
Hybrid
Related Videos