Better Programming

Advice for programmers.

Follow publication

Member-only story

13 Tips for Writing Useful Unit Tests

Nick Hodges
Better Programming
Published in
5 min readOct 7, 2019
Photo by Ben Mullins on Unsplash

1. Test One Thing at a Time in Isolation

2. Follow the AAA Rule: Arrange, Act, Assert

3. Write Simple “Fastball-Down-the-Middle” Tests First

4. Test Across Boundaries

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Nick Hodges
Nick Hodges

Written by Nick Hodges

Just a guy with a bad pistachio addiction.

Responses (9)

Write a response