Making a mockery - test mocking and method fixtures

By Michael Jemmeson (‎michael‎) from
Date: Saturday, 12 December 2015 09:10
Duration: 20 minutes
Target audience: Any
Language: English
Tags: fixtures mocking testing

Writing tests is hard, especially in real-world codebases with external dependencies.

Mocking methods and objects is a possible solution to problems in testing, but how and when is it a good idea?
When is mocking not a good idea and is extensive mocking actually helping create useful tests?

What's on CPAN to help us write tests with mocking. Are there alternatives to mocking?

Introduces Test::MethodFixtures as food-for-thought about how we could test externalities.

Attended by: Tom Hukins, Christian Jaeger (‎pflanze‎), Lee Johnson, Smylers, Dagfinn Ilmari Mannsåker (‎ilmari‎), Adam Taylor (‎adam-_-‎), Gillian Forster, Kirk Gibson, Adrian Faiers, Hugh Barnard, Pavel Vodopyan, Pete Houston, Dinis Rebolo (‎drebolo‎), Merlyn Kline, Tony Edwardson, Yiannis Belias, Dimosthenis-Andreas Kyriakidis-Karakolis (‎Specchio‎), Hugo Areias (‎hugoareias‎), Christopher Hanna (‎Chad‎), Katherine Spice, Edward Higgins, Jasmine Ngan, Søren Lund (‎slu‎), Michael Jemmeson (‎michael‎),



Adzuna         CV Library     Eligo     Evozon     Exonetric     geek University     magnum Solutions     Perl Careers     Science Photo Library     Shadowcat
      Systems Limited    


Enlightened Perl Organisation     FlossUK     Perl6 Community     Perl Weekly