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

Fully Test-Driven Django With Selenium

A session at EuroPython 2012

Thursday 5th July, 2012

9:00am to 10:30am (CET)

The concept: run through the official Django tutorial, but with full TDD
Includes browser-based testing with Selenium, using the new WebDriver API
In-depth unit-testing, including the Django Test Client and tools like Mock
Discussions of TDD philosophy: what to test, what not to test, how to test

http://www.tdd-django-tutorial.com/
https://github.com/hjwp/Test-Dri...

come prepared! you’ll need git, firefox, python2.7, django1.4 and selenium installed.

This tutorial is aimed primarily at people who want to learn about one or many of:

  • Django
  • Selenium
  • Test-Driven-Development

So it’s aimed at beginners of one kind or another – if you are already well versed in all three, then you may not get much out of it.

The idea is to run through the steps covered by the official Django tutorial, covering the essentials of Django from a beginner’s point of view. However, at each stage, instead of “just” writing the Django code required to build our site, we first write tests.

And we don’t just write unit tests! We start by writing “functional” or “acceptance” tests, using Selenium - which means driving a real browser, and checking the actual behaviour of the site as it is rendered, from the user’s point of view.

Why should you listen to me, I hear you ask?

Well, I was lucky enough to get my first “proper” software development job about two years ago with a bunch of Extreme Programming fanatics, who’ve thoroughly inculcated me into their cult of Test-Driven development. Believe me when I say I’m contrary enough to have questioned every single practice, challenged every single decision, moaned about every extra minute spent doing “pointless” tests instead of writing “proper” code. But I’ve come round to the idea now, and whenever I’ve had to go back to some of my old projects which don’t have tests, boy have I ever realised the wisdom of the approach. So, I’ve learnt from some really good people, and the learning process is still fresh in my mind, and most importantly, I still have the passion of a recent convert!

About the speaker

This person is speaking at this event.
Harry Percival

Software Engineer, Resolver Systems

Coverage of this session

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

EuroPython 2012

Italy Italy, Florence

2nd8th July 2012

Tell your friends!

When

Time 9:00am10:30am CET

Date Thu 5th July 2012

Where

Pizza Margherita, Grand Hotel Mediterraneo

Short URL

lanyrd.com/swpfw

View the schedule

Share

Topics

Books by speaker

  • Visual Basic 5 Fundamentals Unleashed (Vol 1)
  • Max Maven's Book of Fortunetelling
  • UFO Sightings: The Evidence

See something wrong?

Report an issue with this session