What makes code clean? And do the same clean code principles apply to tests? What are clean tests anyway?
Let’s face it, when we have a passing test, we copy it, on our way to the next one. we don’t refactor the original, we introduce more duplication, things that will cost us in the future. Why is this one failing? Why doesn’t the other one? I mean, they look so much the same. If there was a way to tell them apart, and save some time…
In this session I’m talking about the principles that help with writing clean tests. I also give a test refactoring example, turning ugly, duplicated test code into maintainable code.