Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Lettuce

lettuce.readthedocs.io

  • Free plan
  • Windows
  • Linux

What the maker publishes

Audience
The tutorial says Lettuce lets people who do not program describe the behavior of a system in plain text. source
CI output
Lettuce can use Subunit to output test results for continuous-integration workflows. source
Command-line use
Lettuce runs from a shell and can run feature files or selected scenarios. source
Cucumber inspiration
The documentation describes Lettuce as a BDD tool based on Cucumber, which has more features than Lettuce. source
Django
The project README lists Django among the packages used in Lettuce's tests. source
Django integration
Lettuce supports Django projects and documents Django-specific hooks and built-in steps. source
Founded
2010 source
Grouped steps
Lettuce supports grouping steps in a class decorated with @steps. source
Installation
The tutorial instructs users to install Lettuce from a terminal with pip after installing Python. source
Installation
The documentation says the latest stable release can be installed with pip. source
Known comparison
The documentation says Lettuce focuses on common BDD tasks and has fewer features than Cucumber. source
License
The repository identifies Lettuce as free software under the GNU General Public License version 3 or later. source
Natural-language scenarios
Developers can describe features in natural language as scenarios and define Python steps that execute them. source
Purpose
Lettuce runs plain-text functional descriptions as automated tests for Python projects using behavior-driven development. source
Scenario writing
Features can be described in natural language as one or more scenarios, with steps that run Python code. source
Step discovery
Lettuce recursively looks for Python files inside the features directory; the files can have any name ending in .py. source
Step syntax
Steps can be defined with the @step decorator, using a sentence pattern or taking the sentence from a function name or docstring. source
Support
The project documentation directs users to an issue tracker and user and development mailing lists. source
Test setup hooks
Hooks can run before and after features, scenarios, and steps for tasks such as setting up or cleaning test data. source
Unstable features
The documentation warns that step.behave_as and xUnit XML output are unstable and untested. source
Windows support
The project README notes that a contributor made Lettuce work on Windows and points to an installation guide. source

Checked against the maker's pages on 8 Oct 2026.