# Write fewer, longer tests

DevFeed: [Write fewer, longer tests](<https://devfeed.tech/articles/write-fewer-longer-tests-51927.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/write-fewer-longer-tests>)

Published: 2019-08-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Jest](<https://devfeed.tech/topics/jest.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [isolation](<https://devfeed.tech/tags/isolation.md>), [one-assertion-per-test](<https://devfeed.tech/tags/one-assertion-per-test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

A testing article argues that combining related assertions into fewer, longer tests can improve isolation, avoid shared mutable state, reduce nesting, and make failures easier to diagnose in Jest and React tests.

## Source excerpt

Making tests too short often leads to poor testing practices and way more tests.