|
|
|
|
|
by windows2020
1386 days ago
|
|
A year into a novel project, a teammate expressed their concern about a lack of unit tests. They'd even spent time creating a bunch early on. I asked if they still ran or were even relevant any longer and the answer was no. Particularly with exploratory projects, I'd recommend focusing on rapidly iterating to reach the simplest solution (businesswise and implementation-wise). If in the end non-trivial logic must be specified, write some tests. Your definition of 'non-trivial' will change with experience. |
|
But tests aren't inherently good. Good tests will speed you up, bad ones will slow you down. And it is incredibly hard to write good tests. Might be even harder than writing software that tests supposed to test:
If software works in 80% of cases, it creates 80% of value.
If tests work in 80% of cases, they cause harm in the remaining 20%.