How to Name Unit Tests
Introduction Many of us spend minutes or hours on coming up with a name for the unit test, and here I’d like to share my guidelines for unit test naming that I hope will make your tests easy to understand without diving into the details. The problem “Unit tests where each test case method name is only an enumeration, e.g. test1, test2, test3. As a result, the intention of the test case is unclear, and the only way to be sure is to read the test case code and pray for clarity.” - Yegor Bugaenko. ...