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.

14.07

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

13.59

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

13.57

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

13.53

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

This is with the English like syntax for testing.

13.51

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

13.49

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

13.46

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

13.42

Splinter:

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

– Makes css/xpath selectors available for navigation the site

13.40

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

13.39

13.37

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

13.35

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

13.34

Talk starting now. Adam Nelson has taken the stage.