paint-brush
Write Great Unit Tests by Writing Unit Tests that Failby@chrisnorthfield
513 reads
513 reads

Write Great Unit Tests by Writing Unit Tests that Fail

by Chris Northfield3mJune 5th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In order for any test that has never failed has no value, it must have failed at least once. Craig Livings made a controversial statement in a controversial LinkedIn post one year ago. The takeaway is that failing our tests is such an important skill. When writing tests, we must know they have failed, so we know they add value. This is why it’s so important to spot these mistakes when more complex code is more complex testing when more testing is more difficult to spot.

Company Mentioned

Mention Thumbnail
featured image - Write Great Unit Tests by Writing Unit Tests that Fail
Chris Northfield HackerNoon profile picture
Chris Northfield

Chris Northfield

@chrisnorthfield

Software engineer. I'm passionate about the ocean too!

Learn More
LEARN MORE ABOUT @CHRISNORTHFIELD'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Chris Northfield HackerNoon profile picture
Chris Northfield@chrisnorthfield
Software engineer. I'm passionate about the ocean too!

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite