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

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bulk-delete GitHub Repos

Check out the Microsoft talks at Oracle Code One!

Standards in Product development: Case study of the ISO 26262 safety standard

THE THREE KINGDOMS — DECEMBER MONTHLY UPDATE

Pytest Plugins to Love ❤️

Packaging Helm chart and making it available in helm registry

How We Reduced Our Amazon Redshift Cost by 28%

Why are stateful containers so confusing in Kubernetes?

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

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

More from Medium

The essential role of dependency injection in unit testing

Part 2: Test Driven Development — coding a stack the TDD way!

What is System Testing?