DEV Community

Matheus Rodrigues
Matheus Rodrigues

Posted on • Originally published at matheus.ro on

Unit Test Naming Convention

Naming classes, methods, variables are hard, perhaps one of the most difficult things in programming.

There are only two hard things in Computer Science: cache invalidation and  naming things. — Phil Karlton

I’m recently reading the book The Art Of Unit Testing, by Roy Osherove, an excellent book on how to develop sustainable, readable and reliable unit tests. Highly recommended to any developer who wanted to start learning about unit testing and delving deeper into the subject.

In one of the chapters, the author give some tips on how to naming unit tests to make them more readable and improve maintenance by other developers. From this reading, I decided to make this post to talk about naming conventions for unit tests, I’m going to talk about the naming convention from the book and two other approaches.

Continue Reading...

Original posted in Unit Test Naming Convention

Top comments (0)