Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
You want to test your cookbooks? Cool. Where do you start? In this talk, I'll walk you through step-by-step the process for executing test-driven development on a cookbook. From real-time feedback with guard and terminal-notifier, to chefspec, fauxhai, and foodcritic, quickly learn how to apply both basic and advanced tests in your infrastructure. Help us caption & translate this video! http://amara.org/v/FGbk/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video titled "TDDing tmux" features Seth Vargo discussing the process of implementing test-driven development (TDD) within Chef cookbooks, emphasizing its accessibility to both developers and operations teams. Seth, a Solutions Engineer at Ops Code, begins by engaging the audience in a discussion about their backgrounds as Rubyists and operations personnel, pointing out the disparity in testing practices between the two groups. Key points discussed in the presentation include: - **Introduction to Testing in Chef**: Seth highlights the importance of applying familiar Ruby testing techniques in the context of Chef, which operates using Ruby. He underscores the usefulness of TDD and encourages collaboration between Ruby developers and operations personnel. - **Essential Tools**: He introduces several critical tools for testing Chef cookbooks: - **ChefSpec**: A testing framework that simulates Chef in memory, allowing users to verify that code behaves as expected. - **Fauxhai**: A tool developed to simulate different operating system environments, providing the necessary node attributes that ChefSpec requires. - **Foodcritic**: A linting tool that helps ensure adherence to best practices while writing Chef cookbooks. - **Strainer**: A Ruby gem designed to define and execute tests efficiently across a code base, especially useful for CI/CD pipelines. - **Guard**: A command-line tool that watches for file changes and runs defined tests automatically. - **Creating a Cookbook**: Seth walks through the process of creating a new cookbook for `tmux`, using the Knife CLI. He explains the importance of editing the metadata and writing specs for TDD. - **TDD Process**: The video details the cycle of writing tests, understanding failures, and developing code until the tests pass, promoting a disciplined development process. - **Running Tests and Linting**: Seth emphasizes running Foodcritic for linting and validating cookbook practices, alongside Knife for Ruby syntax checking. He discusses the integration of Strainer into CI systems to streamline testing. The comprehensive overview concludes with an invitation for questions, reiterating the importance of TDD in ensuring quality and collaboration in Chef development processes. He encourages the audience to leverage these tools for more effective cookbook management and testing.
Suggest modifications
Cancel