Conversely, if you do only integration tests, you basically have to rebuild large portions of your application to test literally anything, which means you probably won't write tests _either_. Also integration tests are really fragile--if you add something in a place you're not testing that needs another layer of bootstrapping, you've broken all the tests where that somewhere is at all referenced.

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (2)