published on 16 December 2014

In this edition of the Puppet Podcast, hosts Kara and Kent sat down with Gareth Rushgrove, Puppet Labs software engineer, to talk about Test Driven Development (TDD). This podcast is especially helpful to those who are new to TDD: the process of writing tests first, then writing enough code to pass the test and finally refactoring the code to make it better.

Gareth shares how he uses Test Driven Development and why he’s found it a compelling way to write code. He says, “Tests help you move quickly and not break functionality.” He encourages those new to TDD to jump in and write their first test. He explains,“Writing the first test is the hardest, but once you’ve gotten one test in, you can replicate that to different modules very easily.”

Gareth recommends reading the code of modules that have test suites, such as garethr-docker and other Puppet Approved modules and to join the puppet-users mailing list if you’re just starting out writing tests. Be sure to check out the Learn More section below for even more resources.

Want to know which tests to write, which tools and frameworks he recommends for different testing situations, how to get started with TDD, and more? Listen in!

If you enjoyed this podcast, you should check out our podcast page for more great discussions, or subscribe in your favorite podcast tool.

Don’t forget to email us at [email protected] - we’d love to hear about future podcasts ideas or questions you have.

Learn More

Share via:
The content of this field is kept private and will not be shown publicly.

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.