Writing Elegant Tests

Presented by

Franklin Webber, Training and Technical Content Lead, Chef

About this talk

You’ve probably found that the many tests you write for all your cookbooks require as much or more effort than maintaining the cookbooks themselves. You’ve also probably noticed that there’s quite a bit of boilerplate code required to verify all the recipes, resources, and helpers. The consequence is that much of your test code is duplicated from one cookbook to another. In this webinar, Franklin Webber, Training and Technical Content Lead at Chef, will show you techniques that bring elegance to a cookbook’s tests. You’ll learn how to eliminate redundancy, rebuild common patterns into helpers, and extract those helpers into a portable library. Join to learn how to: - Refactor tests for more elegant code - Craft reusable testing resources and helpers - Extract testing resources into a Ruby gem Who Should Attend: - Anyone who writes tests for cookbooks

Related topics:

More from this channel

Upcoming talks (0)
On-demand talks (59)
Subscribers (23134)
We are IT automation for speed and awesomeness. We give you a model for automating IT infrastructure and applications that drive self-reliance across your development and operations teams. We are the Chef Community. We are tens of thousands strong. We are helping your businesses become faster, safer and more flexible, so you win in today's 24x7 digital economy. Join our movement today.