Michael Lynch 11/9/2018

Why Good Developers Write Bad Unit Tests

Read Original

This article explains why good developers often write bad unit tests by incorrectly applying production code principles like abstraction and encapsulation to test code. It argues that test code is a diagnostic tool that should be simple and obvious, not complex and abstract. Using the analogy of a skyscraper built on a beach, it illustrates how misapplying 'best practices' from production development can create tests that are hard to understand and maintain.

Why Good Developers Write Bad Unit Tests

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