Kent C. Dodds 7/6/2019

Write tests. Not too many. Mostly integration.

Read Original

This article explores a popular testing philosophy: 'Write tests. Not too many. Mostly integration.' It argues for writing automated tests to save time and catch bugs, but warns against mandating 100% code coverage due to diminishing returns. The core advice is to prioritize integration tests that boost confidence in the application's business logic over unit tests that often slow down development and refactoring.

Write tests. Not too many. Mostly integration.

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
4
Introducing RSC Explorer
Dan Abramov 1 votes
6
Fragments Dec 11
Martin Fowler 1 votes
7
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
8
Refactoring English: Month 12
Michael Lynch 1 votes
10