|
|
|
|
|
by mac-chaffee
2204 days ago
|
|
I think there's a tendency to believe that a microservice written by someone else can be replaced with a stub that just validates JSON or something. But in my experience, that thinking leads to bugs where the JSON was correct, but it still triggers an error when you run real business logic on it. It's an easy trap to fall into because that microservice exists to abstract away that business logic, but you can't just pretend it doesn't exist when it comes to testing. So stubs may be good for unit tests, but only if there are integration tests to match. |
|