How do I check that my tests were not removed by other developers?

Posted by parxier on Programmers See other posts from Programmers or by parxier
Published on 2011-02-04T02:56:30Z Indexed on 2011/02/04 7:33 UTC
Read the original article Hit count: 241

I've just came across an interesting collaborative coding issue at work.

I've written some unit/functional/integration tests and implemented new functionality into application that's got ~20 developers working on it. All tests passed and I checked in the code. Next day I updated my project and noticed (by chance) that some of my test methods were deleted by other developers (merging problems on their end). New application code was not touched.

How can I detect such problem automatically? I mean, I write tests to automatically check that my code still works (or was not deleted), how do I do the same for tests?

We're using Java, JUnit, Selenium, SVN and Hudson CI if it matters.

© Programmers or respective owner

Related posts about testing

Related posts about version-control