News for hackers. Stuff that matters.
Re:Testing code is simple by eterm on Thursday September 26, 2013 @08:17AM (#6450185)
And then every time that stuff changes, all the tests are suddenly out of date, which means people get used to the idea that failing tests are fine and fixed by updating the tests.
Re:Testing code is simple by RHSeeger on Thursday September 26, 2013 @10:22AM (#6450929)
This is a people problem as much as a test problem.

1. Write your code so that independent units of functionality (algorithms) can be tested. 2. Make sure people understand, when changing code, either a) change the tests first, or b) recognize what tests should be failing because of the change and which shouldn't.

For good, testable code combined with good tests, it should be rare that the tests start failing when you change the implementation. Admittedly, that's true in theory and can vary widely in practice.

Re:Testing code is simple by rhizome on Thursday September 26, 2013 @01:31PM (#6452252)
That sounds like a problem of too-tightly coupled tests.