Re:Is it a Good Idea to Write Tests for Legacy Code?
by frownie on Wednesday November 20, 2013 @06:48AM
(#6767495)
I definitely concur with this. Acceptance tests are really powerful as they somewhat "imply" unit tests. Using your gut-feeling to write them makes the process less brute force than "proper unit testing"
[ Parent
| on HN ]
Re:Is it a Good Idea to Write Tests for Legacy Code?
by ollysb on Wednesday November 20, 2013 @09:07AM
(#6768003)
As projects get older I find that the acceptance tests are the part that change the least. Lower level there's always a degree of churn as you refactor out duplication, consolidate interfaces etc. and the tests have to be rewritten as you go. A good solid set of acceptance tests means you can refactor away without having to worry about breaking the site.