2 ms·
No, you just need a sane test architecture. I've worked on monoliths, and none of them required docker compose for unit tests. Now, you may need some extra inf
by Tainnor 4y ago
No, you just need a sane test architecture. I've worked on monoliths, and none of them required docker compose for unit tests.
Now, you may need some extra infrastructure for integration tests, depending on how you architect them, but that's also not a requirement. You could also use mock services, test containers, ... - essentially there's enough ways to make this sane.
It's annoying that people take badly written monoliths as an excuse to proceed to write badly written microservices.
- EdwardDiego 4y agoLet me just say, Django was designed to be a monolith. Also, people who put code that reaches out to external systems in __init__.py are the devil, but the people who decided "sure, let's execute code when we import a module or package, even if we're just importing it to use a class, that sounds reasonable" are the super-devil.