This edition has ended. See the current edition website here.

Johan Martinsson & Rémy Sanlaville – 100% Confident with Legacy Code

Johan Martinsson & Remy Sanlaville – 100% Confident with Legacy Code

About Johan Martinsson
About Rémy Sanlaville

Summary

Frustrated you can’t refactor that piece of un-SOLID SH*T because you don’t have tests and it takes too long to write them?

Learn how to write non regression tests super-fast! We’ll work in *baby steps* on a real world application with complex logic and untestable dependencies. We introduce a powerful emerging concept of writing temporary tests that are tailored only for refactoring. It builds upon the techniques Golden Master and approval testing. We show how those work in a world of side effects and untestable dependencies. You’ll also get an understanding of how to apply this approach at any level of testing. We’ll discuss how this goes hand-in-hand with traditional system testing and the practice of TDD.

Find the setup instructions here.

Alose please find a video here about the session.

Duration

120 minutes

Detailed Schedule

Demo: Test 200 lines of code in 5 minutes!
Baby steps (Short intro + Do It Yourself):

  • String comparison with ApprovalTests
  • Branch coverage by input parameter variation
  • Serializing a complex type
  • Mocking web services
  • Capturing side effects
What you will learn?

How quickly protect major refactorings

  • Gain time by not writing assertions
  • Elegantly mock entire webservers
  • Deal with side effects
  • Generate input arguments
Pre-requisites

Developers with some TDD experience. Java, IDE with code coverage. Clone and build project

What’s next?

ApprovalTests – blog, FAQ and doc http://approvaltests.sourceforge.net/
http://martinsson-johan.blogspot.fr/2014/01/golden-master-and-legacy-few-insights.html
http://martinsson-johan.blogspot.fr/2014/05/golden-master-and-test-data.html
http://blog.adrianbolboaca.ro/2014/05/legacy-coderetreat-golden-master/
https://github.com/pearlfish/pearlfish-java
UI visual diffing -
https://www.youtube.com/watch?v=UMnZiTL0tUc&feature=youtu.be
Working Effectively with Legacy Code – in particular for creating “seams”

Do the attendees need a laptop?

Yes.But you can probably find a pair to work with.

Share Button
FacebookLinkedInTwitterGoogle+Pinterest
Tagged with: , , , , , , , ,
Posted in Abstract, Workshop

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>