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

Start TDDing in 5 minutes

Start TDDing in 5 minutes

TDD is awesome, but can be scary. Learn how to start practicing it in 5 minutes by fixing bugs, so we can kill two birds with one stone!

Matheus Richard

October 19, 2021
Tweet

More Decks by Matheus Richard

Other Decks in Programming

Transcript

  1. About me Matheus Richard module Matheus def self.working_at() = "thoughtbot

    - Software Engineer" def self.blogging_at() = "https://matheusrich.com" def self.github_profile() = "@MatheusRich" def self.twitter() = "@MatheusRich" def self.other_hobbies() = %w[Gaming Playing\ guitar Skating] def self.studying() = %w[Crystal Rust] end
  2. TL;DR 1. 🐛 Identify the bug; 2. ❌ Write a

    test that reproduces the error;
  3. TL;DR 1. 🐛 Identify the bug; 2. ❌ Write a

    test that reproduces the error; 3. ✨ Fix the bug;
  4. TL;DR 1. 🐛 Identify the bug; 2. ❌ Write a

    test that reproduces the error; 3. ✨ Fix the bug; 4. ✔ Watch the test pass.