RubyConf 2021 - To mock, or not to mock? by Emily Giurleo

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=mD7zm3MFPuA



Duration: 27:56
117 views
4


Mocking: it’s one of the most controversial topics in the testing world. Using mocks, we can more easily test parts of our applications that might otherwise go untested, but mocks can also be misused, resulting in tests that are brittle or downright self-referential.

So… how do we know when to use mocks in our tests? In this talk, we’ll identify three important questions that can help us make that decision. By the end of the talk, you will have a framework in mind to help you answer the question: to mock, or not to mock?

**Filmed by Colorado Union Videographers




Other Videos By Confreaks


2022-08-09RubyConf 2021 - Service Objects With Dry.rb: Monads and Transactions by Paul Sadauskas
2022-08-09RubyConf 2021 - Ruby Archaeology by Nick Schwaderer
2022-08-09RubyConf 2021- Automating Legacy Desktop Applications with JRuby and Sikuli by Chris Cha
2022-08-09RubyConf 2021 - Schrödinger's Error: Living In the grey area of Exceptions by Sweta Sanghavi
2022-08-09ubyConf 2021 - Keeping Developers Happy with a Fast CI by Christian Bruckmayer
2022-08-09RubyConf 2021 - Vertical Assignment in Ruby by Kevin Kuchta
2022-08-09RubyConf 2021 - Do regex dream of Turing Completeness? by Daniel Magliola
2022-08-09RubyConf 2021 - Learning Ractor with Raft by Micah Gates
2022-08-09RubyConf 2021 - The art of deleting code by Claudio Baccigalupo
2022-08-09RubyConf 2021 - Blank Page Panic! Creating Confidence with TDD by Elayne Juten
2022-08-09RubyConf 2021 - To mock, or not to mock? by Emily Giurleo
2022-08-09RubyConf 2021 - The Audacious Array by Ariel Caplan
2022-08-09RubyConf 2021 - I Read It But Don’t Get It, or How to Tackle Technical Texts by Steve Lynch
2022-08-09RubyConf 2021 - Your First Open-Source Contribution by Rachael Wright Munn
2022-08-09RubyConf 2021 - The Mindset of Debugging by Kyle d'Oliveira
2022-08-09RubyConf 2021 - Fake Your Test Away: How To Abuse Your Test Doubles by Jenny Shih
2022-08-09RubyConf 2021 - Keynote: On the Care and Feeding of Feedback Cycles by Elisabeth Hendrickson
2022-08-09RubyConf 2021 - Q&A with Matz by Evan Phoenix & Yukihiro Matsumoto (Matz)
2022-08-09RubyConf 2021 - On Being an Early Career Dev in Your 30s by Ben Greenberg
2022-08-09RubyConf 2021 - Lightning Talks
2022-08-09RubyConf 2021 - Taking the 737 to the Max by Nickolas Means