DEV Community

Discussion on: What exactly is a "unit" in unit testing?

Collapse
 
aghost7 profile image
Jonathan Boudreau

To keep it simple to explain I tend to say that unit tests should be the smallest piece of code possible (like a function) and should not do any IO. To me these are the most important aspects of unit testing.