Get Lanyrd on your mobile (iPhone, Android and more) - check it out here

Stop Mocking, Start Testing

A session at PyCon US 2012

Project Hosting at Google Code is a large, well-established system written mostly in Python. We'll share our battle-born convictions about creating tests for test-unfriendly code and the larger topic of testing.

When launched, Project Hosting’s testing consisted of the stock Subversion test suite and a handful of ad hoc smoke test scripts that required starting the entire system and manually inspecting the test’s output.

Over six years of codebase evolution, tests have been added with varying degrees of coverage and maintainability. Early system design decisions made adding tests difficult: the first tests added to the system used mock objects unwisely and large numbers of mock objects made refactoring costly in time and effort.

Frustration with the difficulty of enhancing the service led us to reevaluate our testing practice and led to the discovery of better ways to test applications of this complexity. We will share our experiences with testing and discuss designing for maintainability and testability and appropriate use of testing tools such as frameworks and mocks.

About the speakers

This person is speaking at this event.
Augie Fackler

Version control hacker. Musician on the side. bio from Twitter

This person is speaking at this event.
Nathaniel Manista

Next session in D5

11:30am Fast Test, Slow Test by Gary Bernhardt

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 10:50am11:30am PST

Date Fri 9th March 2012

Short URL

lanyrd.com/spbyg

Official session page

us.pycon.org/…e/presentation/315/

View the schedule

Topics

See something wrong?

Report an issue with this session