DEV Community

Discussion on: Code Comments Are Stupid

Collapse
 
matjones profile image
Mat Jones

That’s a very good point. The only caveat is that you have to actually open the separate file for the unit tests, which isn’t a big deal it’s just another level of separation between the code and it’s specifications.

Collapse
 
rossdrew profile image
Ross

You don't always need to. Many IDEs will run them in a window and display test names and failures. That can be explanatory enough in many cases