You are viewing a single comment's thread.

view the rest of the comments →

0
0

[–] boater ago  (edited ago)

They break stupidly when code changes, and people defend them saying "Oh, well, good unit tests don't do that"

They don't break stupidly if you are doing modular functional programming and write the unit test functions in the bottom of the exact same file as the functions they are written to test. This lets you keep related logic in the same place and automatically generate unit test binaries by parsing function signatures rather than creating them manually.

However, if you put your unit test functions in a different file or folder than your primary source code, then yes they will breakly stupidly whenever you need to rename things, as you will have to many more locations in which to remember to change the name.