Manage test fixtures for fast and reliable in-memory tests

Why Don’t You Take ‘Given’ in BDD Seriously?

Martin Fowler’s Object Mother Pattern Revisited

Image for post
Image for post
This will be clear once you have read this post.

Similar work

Background

Where is the code?

Image for post
Image for post
We have two microservices, of which one is responsible for users and another is responsible for invoices. Each of the microservices own a database for persisting business objects. We will target the Users microservice.
Image for post
Image for post
From the point of view of our tests, we care about data on users, addresses and invoices, but not about how such data is handled in our external dependencies.

Conclusion

Resources

Written by

I write about life, universe and software development.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store