3 ms·
For me unit testing is very useful during development of new code as a way to ensure you cover all of your bases. But unit tests also give false security later
by baja_blast 5y ago
For me unit testing is very useful during development of new code as a way to ensure you cover all of your bases. But unit tests also give false security later down the road that old code still works fine due to the mocks and fixtures used to test with remain fixed in time.
Unless you actively update fixture data for all of your unit tests, you can never be sure that all green check marks means everything will work once in production.
- treeman79 5y agoBeen dealing with old projects that had many thousands of tests. Most were pointless because of how much they were mocked out. On a more recent project at same company the developers were all arguing to just mock everything out. They lack the skills to make good tests and I don’t want to be 12 hours shifted from family to train/babysit them. I mostly try to get them to isolate what each section of code does. This keeps it more sane when debugging. Reality of working with low wage offshore developers.