Unit testing: you ain't doing it and you should

By David Cantrell (‎DrHyde‎) from London.pm
Date: Saturday, 24 November 2012 12:20
Duration: 50 minutes
Target audience: Any
Language: English
Tags: debugging testing


Lots of perl people think that they're doing unit testing, because they test each module. That is not unit testing. Unit testing tests each indivisible unit of functionality *in isolation*, testing not just functions' return values for various arguments, but also their interactions with other parts of your application by mocking those other parts. Unit testing makes tests far more useful as a debugging tool, but also requires changing how you think about writing code. In this talk I'll show how you can make your code more debuggable with unit testing.


Attended by: Elena Bolshakova (‎helena‎), Aaron Crane (‎arc‎), Avi Greenbury (‎BigRedS‎), Tony Edwardson, Jan Hartung (‎Egga‎), James Ronan (‎Jim‎), Ross Hayes, pozorvlak, Jason Clifford, Andrew Todd (‎Toddy‎), Neil Bowers (‎NEILB‎), Johannes Flieger, Brad Haywood, Pete Houston, Michele Beltrame (‎arthas‎), Tony Bedford, Pete Barlow, Christian Karg (‎odrm‎), Daniel De Ruvo, Nicholas Clark, Pierre Masci (‎mascip‎), Eduardo Pato Rodrigues (‎eduzito‎), Graeme Hewson, Andrew Jones, Matthew Black, Michael Jemmeson (‎michael‎), James Green (‎jkg‎), David Precious (‎bigpresh‎), Christopher Hanna (‎Chad‎), Alexandru Strajeriu (‎Deluxaran‎), Istvan Gal, Dominic Humphries (‎djh‎), Dumitru Negrea, Russell Wheeler, Tzctyapc, Adela Codrea, Ben Rogers, David Escribano, Tudor Crisan, Colin Campbell, Johnathan Swan, Florentina Borse (‎Florentina‎), Peter Haworth (‎pmh1wheel‎), Andy Jones, Victor Churchill, Tom Beresford, Natalya Shynkaryova, Bianca Gutu, David Cantrell (‎DrHyde‎), Thomas Adam, Merlyn Kline, Iain Campbell, James Heald, Pedro Figueiredo (‎pfig‎), Brian Kelly, Steve Holden, John Harrison (‎JohnGH‎), kevin dawson (‎bowtie‎), Paul Evans (‎LeoNerd‎),

Sponsors

Corporate

antibodyMX

Booking.com

Bytemark Hosting

Eligo Recruitment

Evozon Software

Exonetric

magnum Solutions

Motortrak

Nestoria

Net-A-Porter

Opus VL

Petamem

Shadowcat
      Systems Limited

Community

Enlightened Perl Organisation

Bar design at the bottom of the page