26 au 28 février, 2025
Montréal, Canada

Stop Using (Quite So Many) Mock Objects

Mock objects are a great trick for testing code that cannot be tested any other way. Unfortunately, a lot of developers have interpreted that to mean that mock objects should be used for testing any and all code. This leads to tests that are not very thorough, tightly coupled to the code under test, hard to understand, and hard to modify. I'll discuss some techniques that help you write better tests -- most importantly, fakes and stubs.

Voir les 194 présentations

Greg Ward

I've been using and contributing to open source software since before it was called open source. I have contributed to Python, Mercurial, and many more projects, and I have been working professionally as a programmer for over 25 years. In short, I've been around long enough to make a lot of mistakes, and now I want to help others avoid those mistakes.

Read More