On Thu, Mar 6, 2014 at 8:06 PM, Gergo Tisza gtisza@wikimedia.org wrote:
Hi all,
== The state of unit tests ==
We discussed these issues, and decided that writing the tests was still a good decision at the time, but once we are done with the major code refactorings, we should take some time to refactor the tests as well. Many of our current tests test the implementation of a class; we should replace them with ones that test the specification.
This process is something that I think would be of great interest to a variety of teams:
* When to throw away old tests * When to create new tests (TDD style, before writing the code that satisfies the test?) * When to refactor existing tests * At what point do you make these decisions?
I'd like to encourage you to discuss your approaches along these lines, because I think it would be of great interest across all the WMF dev teams. -Chris