Lettuce, Salad and how you write beautiful tests

Amit Singh Sethi (~dusual)




Wouldn't it be great if your Product Managers could understand your test. Wouldn't it be great if your tests represent in plain English your business problems as well.

Welcome to BDD

Behaviour Driven Development (BDD) is a development process based on Test-Driven Development – but makes a significant modification. With TDD – the main goal was to achieve test-coverage (what percentage of your code is covered by tests). With BDD – the driving question – “What percentage of my user stories are covered?” The main test-unit is the user story.


Feature: Manipulate strings
  In order to have some fun
  As a programming beginner
  I want to manipulate strings

  Scenario: Uppercased strings
    Given I have the string "lettuce leaves"
    When I put it in upper case
    Then I see the string is "LETTUCE LEAVES"

With lettuce[[1]] you can convert your user stories into fully automated test framework. This is what we have been doing at siminars to make our tests simple and fun.

1: http://lettuce.it/


Basic knowledge of Python.

Basic understanding of testing and automated testing

Speaker Info:

I am the technical architect at online education company called siminars.com I have been working with software for last 6 years in fields like scientific computing, web development and cloud telephony. I am passionate about testing and organising software development around business problems. And it is this interest that led me to BDD and lettuce.

Section: Testing
Type: Talks
Target Audience: Intermediate
Last Updated:

ok, I guess all python devs are obsessed with salads and fruits.

Can we have some links to your slides or a general structure, some thing that can be used to be put on the projector so audience can follow along.

Please upload the slides/structure so they can be reviewed before 12th feb.

Have you given any talks(including this one) before? Any experience of public speaking? It's not a requirement for doing the talk but would definitely help us gauge the experience level. We suggest going through the presentation least once in front of a small audience to get some experience if you have not already.

Akshay Arora (~akshayaurora)

@Akshay Arora, I have uploaded some draft content to the content to give an idea of how the talk is intended to go.

Yes I have experience of public speaking. I have involved with a IITB project where I used to teach a python workshop. Apart from that I have spoken at foss.in and various startup and coding related events.

Amit Singh Sethi (~dusual)

Login to add a new comment.