tag:blogger.com,1999:blog-15045980.post7199874977032232233..comments2024-03-18T02:13:03.999-07:00Comments on Google Testing Blog: TotT: Refactoring Tests in the RedMarkohttp://www.blogger.com/profile/16755629501705100354noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-15045980.post-24891088593204528542007-05-16T02:35:00.000-07:002007-05-16T02:35:00.000-07:00Often there are several ways of breaking the code ...Often there are several ways of breaking the code to make the test fail. How to you choose the "right way"? <BR/><BR/>By breaking the code in a single way, you only know that your refactoring of the test code didn't stop testing that single aspect. But it may now let other bugs pass by that where tested before. So do you also - after the refactoring - break the tested code in other ways to make sure you didn't weaken the test code in any other way?Marko Schulzhttps://www.blogger.com/profile/04224847600703674167noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-75747487983054724782007-05-09T21:38:00.001-07:002007-05-09T21:38:00.001-07:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/05484936250106202243noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-35434091806749294972007-05-09T21:38:00.000-07:002007-05-09T21:38:00.000-07:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/05484936250106202243noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-23744994125332513872007-04-27T00:59:00.000-07:002007-04-27T00:59:00.000-07:00Modifying the implementation to make sure the test...Modifying the implementation to make sure the tests fail is exactly what <A HREF="http://blog.zenspider.com/archives/2006/12/unit_test_sadism_101_heckle_110_released.html" REL="nofollow">heckle</A> does in ruby. Using it as a mechanism for refactoring is novel tho... I'll have to poke around with that. Thanks!Ryan Davishttps://www.blogger.com/profile/08213057295472610013noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-46745717717642274522007-04-26T07:50:00.000-07:002007-04-26T07:50:00.000-07:00The key insight here is "failure is the test for t...The key insight here is "failure is the test for tests".Jeffrey Fredrickhttps://www.blogger.com/profile/02000091893345778110noreply@blogger.com