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

A Tale of Testing

A Tale of Testing

A story about the journey of testing a large legacy code base.

Trevor Gowing

January 17, 2017
Tweet

More Decks by Trevor Gowing

Other Decks in Programming

Transcript

  1. A Tale of Testing A story about automated testing by

    @trevorgowing hosted by @jembi_hs
  2. Setting the scene • Application began life as internal product

    • Unresourced developers left to make additions/alterations at will • Pervasive custom frameworks with tightly coupled client server architecture • Sold and extended for use by large corporate • 20+ developers have already worked on the application over time • Few 100 000 lines of code • +- 5 year old code base with multiple patterns present • Massive model redesign changing core entity recently completed • Next to no automated tests exist
  3. Learning time... • Some of the team went to a

    conference or two and learned some more about automated testing etc • One of our senior engineers spent some time researching and designing a new development methodology including thorough automated testing.
  4. What do we want from our tests? • Failure reliability

    • Coverage • Maintainability • Readability • Pass reliability • Performance https://watirmelon.blog/2016/03/16/ama-ranking-automated-testing-attributes-in-order-of-importanc e/
  5. How do I decide how much testing I need? •

    How long is my code going to live? • What is the impact of code defects? • How long does it take to manually test my code? • Are there any external systems or integrations relying on my code? • How often is my code likely to change post initial release? • How many people are going to be working on the code? (Concurrently and over time) • How many people are going to be using my code?
  6. Local Conferences • Scrum Gathering • Scaleconf • Rubyfuza •

    DevOpsDays • Pycon • BSides • I Code Java
  7. Recommended Resources • Joe Colantonio • Kent Beck on 3X

    - Explore, Expand and Extract • 3X with Kent Beck
  8. Keep in touch and thanks! • Twitter - https://twitter.com/trevorgowing •

    Google - https://plus.google.com/+trevorgowing • Linkedin - https://za.linkedin.com/in/trevorgowing • Meetup - http://www.meetup.com/members/113029642 Special thanks to Alex Steinberg for creating this group and allowing me the opportunity to speak. Another special thanks to Jembi for hosting and sponsoring food & drinks!