DjangoCon 2011 – Testing with Lettuce and Splinter

After a small scheduling change Adam Nelson will be replacing Alex Gaynor for a talk on Lettuce and Splinter.

Lettuce, adapted from Ruby’s Cucumber, is a behavior driven development (BDD) testing suite that sits on top of Splinter – a web driver for simulating real-world usage of your site. Learn the ins and outs of BDD using Lettuce and Splinter for rapid deployment.

Overall I found the talk lacking a little bit (but he was asked this morning). I think the language is promising but too verbose for actual use.

Lessons I took away: I need to start testing.


Yipit is hiring in NY. Looking for Django developers. Doing some NodeJS Django integrations.


“For teams under 20 developers all developers should be writing tests”


The syntax for this looks awfully verbose. There’s too much room for error.


Audience: “Programmers can help Doctors (non-programmers) test and Doctors can help Programmers test”

This is with the English like syntax for testing.


Audience: “Restricted grammar really focuses your direction and helps you with testing”


Russell Keith-Magee talking about the difference between English like tests.


Audience: “Allows you to decouple your testing developers from non-developer testers”



– Python Library that allows you to “drive” a web browser like Firefox or Chrome

– Makes css/xpath selectors available for navigation the site


What is “Harvest”:

– integrated command in the Django tools that finds features in your apps which you will use.

– Integrates with a module called terrain that holds global and shared methods and variables, using the “world” object



– Describe Behaviour
– Define Steps
– Run and Fail
– Refactor Code
– Run and Pass


Behavior Driven Development (BDD): Tests are defined and then application code is written to pass the tests. Does not replace unit or functional tests


Talk starting now. Adam Nelson has taken the stage.