Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JUGNsk Meetup#9. Mads Opheim: "9 Ways to Test Your Spaghetti Code"

jugnsk
June 13, 2019

JUGNsk Meetup#9. Mads Opheim: "9 Ways to Test Your Spaghetti Code"

"Test the legacy code as well” has been a mantra for many years now. But how do you actually do that? When stuck with tangled legacy-spaghetti, it may be hard to see the way out. The path from struggling with your spaghetti into doing TDD is shorter than you think.

It's so easy to say that you should test code as you change it, now matter how legacy, but in a real-world project, you need to know some tools and techniques to be able to do that.

Many developers out there struggle with the impression that testing and TDD cannot work on their project. I’ll challenge that view and hopefully prove it wrong for most participants, and share the techniques and tricks I’ve used.

jugnsk

June 13, 2019
Tweet

More Decks by jugnsk

Other Decks in Programming

Transcript

  1. 8

  2. 10

  3. 13

  4. Key takeaways 36 1. Good code design improves testability 2.

    TDD on spaghetti code: TDD + test spaghetti code 3. Write tests for you legacy code - you can do it!