3 ms·
> You should test input(say simulate http post call) then check the thing is in the fake database or even better a call to retrieve the item. Agree. The key to
by nicoburns 7y ago
> You should test input(say simulate http post call) then check the thing is in the fake database or even better a call to retrieve the item.
Agree. The key to good tests seems to make them neither unit tests or e2e tests, but something in between. API tests if you have an API, or "medium sized module" tests in other systems.
Unit tests and e2e tests have value too, but they're a lot more work to maintain for less value IMO.