¿ªÔÆÌåÓý

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

[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


 

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.
Ok I'll keep that one in mind for the next TDD course.


I do think that that the community lacks a distilled written up kata about just test smells that allows you to learn a lot about them in a shorter time than it takes to build the problems yourself.


Mark Levison
 

Excellent you're just the man to write it. When you do I promise to shout
from the roof tops (ok perhaps just twitter) singing your praises :-)

Cheers
Mark

On Thu, Feb 21, 2013 at 4:14 PM, johantoutsimplement <
martinsson.johan@...> wrote:

**


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.
Ok I'll keep that one in mind for the next TDD course.

I do think that that the community lacks a distilled written up kata about
just test smells that allows you to learn a lot about them in a shorter
time than it takes to build the problems yourself.




--
Cheers
Mark Levison
Agile Pain Relief Consulting <>
| Writing <>
Proud Sponsor of Agile Tour Gatineau Ottawa <> Nov
28, Toronto <>
26 and Montreal <> 24


[Non-text portions of this message have been removed]