¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: [TDD] Kata for test smells


 

On Tue, Feb 19, 2013 at 10:23 PM, johantoutsimplement <
martinsson.johan@...> wrote:

Hi everyone,

I've been asked to teach test smells Thursday (!) and I'm looking for a
piece of test code that has a good number of them in order to use it for
identifying and then removing the test smells. I plan to make the learners
work on their proper test code but I'd like them to warm up on one or two
"distilled" examples first. And I'm thinking someone has already done that
before and might have it lying around somewhere.

I did find the introduction example in Meszaros book "xUnit Test Patterns"
which could do. But I was hoping for some choice.


There are a number of simple examples of how difficulties in the test drive
a change in the code in Mauricio Aniche's book.



Unfortunately this book is only available in Portuguese...

Another thing you could do is try this exercise:



The tests that this problem drives you to write will have problems... that
you can then talk about.

Matteo

Join [email protected] to automatically receive all group messages.