Skip to content
Cucumber-ish BDD for python
Python JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Version 0.1 - barium

On release names

Lettuce release names will be inspired by any green stuff.

Barium: In form of "barium nitrate" is commonly used to make green fireworks. Such a good name for a first version :)


Lettuce is a BDD tool for python, 100% inspired on cucumber.


  1. Cucumber makes Ruby even more sexy. Python needed something like it.
  2. Testing must be funny and easy.
  3. Most python developers code in python, not ruby.
  4. Ruby has Capistrano, Python has Fabric. Ruby has cucumber, Python has lettuce.
  5. I personally don't like mixing many languages in small projects. Keeping all in python is better.
  6. I love python, and ever did. But I also ever missed something that make writing tests easier and funnier.
  7. I like nose, which is a unittest pythonic framework. However, as the project I work on grows, so do the tests, and it becomes harder to understand them.


you will need to install these dependencies in order to hack lettuce :) all them are used within lettuce tests

  • nose > [sudo] pip install nose
  • mox > [sudo] pip install mox
  • sphinx > [sudo] pip install sphinx
  • lxml > [sudo] pip install lxml
  • django > [sudo] pip install django


  1. fork and clone the project
  2. install the dependencies above
  3. run the tests with make: > make unit functional integration doctest
  4. hack at will
  5. commit, push etc
  6. send a pull request

Special thanks

  1. Cucumber crew, for creating such a AWESOME project, and for inspiring Lettuce.
  2. Tatiana for helping a lot with documentation.
  3. Django which documentation structure was borrowed.
Something went wrong with that request. Please try again.