Levels of testing: how much to test?

  • There are tests at multiple levels for software: unit tests, integration/functional tests, end to end tests
  • Each layer provides additional protection. They have different trade offs. Unit tests are very quick to run. But they won’t catch bugs outside of a unit. End to end tests are very close to realistic use cases. But are slow and generally fragile. So they are expensive to maintain
  • Use the cheap tests liberally and the expensive tests for critical use cases

--

--

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
Aishwar Muthuraman

Aishwar Muthuraman

10 Followers

Adventuring through life. Stories of software development, engineering, fun, and reflection.