Klikk på tall for å vise stripe
Toon 1Toon 2Toon 3Toon 4Toon 5Toon 6Toon 7Toon 8Toon 9Toon 10 JavaZone JavaZone

Listening to Test Smells

cb610d38-89bf-453d-a387-9ca2b7ce7cce
View video  Presentation
This talk is about how to use the stresses of writing unit tests to improve your code. If I'm having trouble writing tests, it's often because the design of my target code can be improved. The trick is to listen to the tests and let them drive my development — that's a hint as to why it's called Test-Driven Development. As a developer, you can sensitise yourself to find the rough edges in your tests and use them for rapid feedback about how to improved the design of your code.
In this talk, I will work through examples of "smelly" tests, showing how they highlight design flaws and suggest improvements.
  • Photo of Steve Freeman
    Steve Freeman
    Steve Freeman is an independent consultant specialising in the Agile delivery of software. A pioneer of Agile software development in the UK, he has built applications for banks, ISPs, financial data providers, and specialist software companies. He has given training courses in Europe , America, and Asia. Previously, he worked in research labs, software houses, earned a PhD, and wrote shrink-wrap software. Steve has also taught at University College London. He is a presenter and track chair at international industry conferences, and was conference chair for the first London XpDay. Steve is a developer of the jMock and nMock libraries.
    At present, he is co-writing a book, with Nat Pryce, "Growing Object-Oriented Software, Guided by Tests" for Addison Wesley. http://www.mockobjects.com/2008/07/growing-object-oriented-software-guided.html
    Steve Freeman Winner of the Agile Alliance Gordon Pask award 2006