In our code review today, this subject of DRY tests came up.
"Dont RepeatYourself."
When we write tests, sometimes the test class can get really busy and code can sometimes be repeated again and again for different iterations of the test.
Once the test is green, it's time to refactor it and make it shorter and shorter - by making use of good coding practices to keep the test DRY.
"Dont RepeatYourself."
When we write tests, sometimes the test class can get really busy and code can sometimes be repeated again and again for different iterations of the test.
Once the test is green, it's time to refactor it and make it shorter and shorter - by making use of good coding practices to keep the test DRY.
No comments:
Post a Comment