2 ms·
For me this depends on what I'm working on, and these days my unit tests are generally for API regression. When I'm writing my APIs, generally my "integration"
by shinylane 8y ago
For me this depends on what I'm working on, and these days my unit tests are generally for API regression. When I'm writing my APIs, generally my "integration" test would simply involve an external request and assertions of the response. This is fantastic for testing what a client expects, not as good at specific units of business logic where regression can be rather expensive. I would agree many folks take unit testing too far, but in some cases it's saved my neck at a pretty small cost of creation.
This is probably not the same story for something like a react or swift application. Good read, thanks for the solid points.