Skip to content

Mocks arenโ€™t Stubs. What are test doubles and how do we use them?

Photo of Imma Valls
Hosted By
Imma V. and Fernando
Mocks arenโ€™t Stubs. What are test doubles and how do we use them?

Details

Hi crafters ๐Ÿ‘‹!

One of the topics we often discuss in our coding dojos ๐Ÿฅ‹ is the concept of mocks & stubs. If you want to join the discussion or learn about mocking styles in test-driven development, this talk is for you!

๐Ÿ—ฃ๏ธ The talk

Mocks arenโ€™t Stubs. What are test doubles and how do we use them?

Good software emerges from the interactions of many parts. Some parts rely on other parts, and this collaboration allows the software to be less complex and more maintainable. However, the more interactions exist, the more rigid, viscous, and fragile the whole system may become. And here is the question. How are we supposed to test these interactions, especially if we want to keep things simple? Are we supposed to use real objects? Or substitute the real objects with something more reliable and predictable?

During the talk, we are going to examine test doubles and different testing strategies. We will quickly recap some basics and discuss the organization of test logic. Then, we will find out what test doubles are, what different kinds of them exist, and how to use them in different situations.

๐ŸŽ™๏ธ The speaker

  • Sergey Kudashev - A web developer with a wide range of interests LinkedIn | X

๐Ÿ“… Agenda

  • 19:00 Opening doors
  • 19:15 Reception & welcome ๐Ÿ‘‹๐Ÿผ
  • 19:30 - 20:30 Talk: Mocks arenโ€™t Stubs. What are test doubles and how do we use them? Sergey Kudashev
  • 20:30-20:45 Q&A ๐Ÿ™‹๐Ÿปโ€โ™€๏ธ
  • 20:45 Networking ๐Ÿ•๐Ÿงƒ๐Ÿป

๐Ÿšจ Important
Security to access the venue:

  • Access control: The security team requires an attendees list. Make sure you register for the event with your ID. Registration will close 24 hours before the event.
  • Youโ€™ll be asked to provide your ID (DNI, NIE, etc.) to access the building.

Thanks to Adevinta for hosting this event in their offices and providing food ๐Ÿ• and refreshments ๐Ÿงƒ๐Ÿป

Hope to see you all on January 18th!

COVID-19 safety measures

Event will be indoors
The event host is instituting the above safety measures for this event. Meetup is not responsible for ensuring, and will not independently verify, that these precautions are followed.
Photo of Software Crafters Barcelona group
Software Crafters Barcelona
See more events
Adevinta Spain
C/ de la Ciutat de Granada, 150 ยท Barcelona, CT