3 ms·
One of things unit-tests gives is fearless refactoring. When you can easily change behavior in one module and tests shows other modules are not affected (or aff
by EugeneOZ 11y ago
One of things unit-tests gives is fearless refactoring. When you can easily change behavior in one module and tests shows other modules are not affected (or affected). When you test only one module/layer you don't see the whole picture and such tests are much less representative and useful.
- bpicolo 11y agoOnly fearless if you're not using mocks/stubs/etc. With mocks and stubs in a dynamically typed language it's not quite as fearless.
- douche 11y agoDynamically typed languages are an anti-pattern, where they are not unavoidable - i.e. web front-ends.
- collyw 11y agoBollocks. If your database schema changes right at the heart of the data model, a load of unit tests are not going to save you from some serious hassle.