lettuce-skill
lettuce-skill enables you to create and execute Behavior-Driven Development tests using Lettuce, a Python-based BDD framework. Write feature files in Gherkin syntax and define step implementations to automate test scenarios. Integrate seamlessly with your Python testing workflows.
lettuce-skill enables you to create and execute Behavior-Driven Development tests using Lettuce, a Python-based BDD framework. With lettuce-skill, you write feature files in Gherkin syntax and define step implementations to automate test scenarios, integrating seamlessly with your Python testing workflows. The skill supports the full lifecycle of BDD test development, from scenario design through execution and reporting.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-24
lettuce-skill enables you to create and execute Behavior-Driven Development tests using Lettuce, a Python-based BDD framework. With lettuce-skill, you write feature files in Gherkin syntax and define step implementations to automate test scenarios, integrating seamlessly with your Python testing workflows. The skill supports the full lifecycle of BDD test development, from scenario design through execution and reporting.
Use it when
- lettuce-skill guides you through writing feature files in Gherkin syntax and creating corresponding step definitions in Python.
- Gherkin is the plain-language syntax used in Lettuce feature files to describe test scenarios.
Verify before relying
Read SKILL.md below before installing (3 files). Open directory: indexed for reading, not audited.
Install
LambdaTest/agent-skills/lettuce-skill · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is lettuce-skill and how does it help with BDD testing in Python?
lettuce-skill enables you to create and execute Behavior-Driven Development tests using Lettuce, a Python-based BDD framework. With lettuce-skill, you write feature files in Gherkin syntax and define step implementations to automate test scenarios, integrating seamlessly with your Python testing workflows. The skill supports the full lifecycle of BDD test development, from scenario design through execution and reporting.
How do I write lettuce tests with feature files and step definitions?
lettuce-skill guides you through writing feature files in Gherkin syntax and creating corresponding step definitions in Python. Feature files describe your test scenarios in plain language using Given, When, and Then statements. Step definitions map these Gherkin phrases to Python code that performs the actual test logic. lettuce-skill provides templates and examples to help you structure both files correctly and link them together for automated test execution.
What is the gherkin syntax lettuce python framework and how does lettuce-skill support it?
Gherkin is the plain-language syntax used in Lettuce feature files to describe test scenarios. lettuce-skill helps you master Gherkin syntax by explaining keywords like Feature, Scenario, Given, When, Then, and And, which form the foundation of readable BDD tests. lettuce-skill also covers Lettuce-specific patterns for organizing these scenarios and linking them to Python step definitions, ensuring your tests are both human-readable and machine-executable.
How can lettuce-skill help me set up Lettuce with Selenium for browser automation?
lettuce-skill provides guidance on integrating Lettuce with Selenium for browser automation testing. You can define step definitions that control web browsers, interact with page elements, and verify application behavior. lettuce-skill covers terrain setup and teardown patterns to initialize WebDriver instances before tests and clean up resources afterward, enabling reliable end-to-end testing workflows with Lettuce and Selenium.
What does lettuce-skill teach about terrain setup and teardown in Lettuce?
lettuce-skill explains Lettuce's terrain module, which handles setup and teardown operations for your test suite. The terrain file allows you to initialize shared resources (like database connections or WebDriver instances) before tests run and clean them up afterward. lettuce-skill demonstrates how to structure terrain.py files, define before_all and after_all hooks, and manage test fixtures efficiently to ensure consistent test execution and resource management.
Should I migrate from lettuce to behave, and how does lettuce-skill address this?
lettuce-skill acknowledges that Behave is a more actively maintained Python BDD framework and provides guidance on evaluating Lettuce versus other Python BDD tools for your test automation needs. If you decide to migrate from legacy Lettuce to modern Behave, lettuce-skill offers insights into the differences between the frameworks, common migration patterns, and strategies for transitioning your existing feature files and step definitions to Behave while minimizing disruption to your test suite.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Lettuce BDD Skill (Legacy)
> Note: Lettuce is largely unmaintained. For new Python BDD projects, use Behave instead.
Core Patterns
Feature File (features/login.feature)
Feature: User Login
Scenario: Successful login
Given I navigate to the login page
When I enter "user@test.com" as email
And I enter "password123" as password
And I click login
Then I should see the dashboard
Scenario: Invalid login
Given I navigate to the login page
When I enter "bad@test.com" as email
And I enter "wrong" as password
And I click login
Then I should see "Invalid credentials"
Step Definitions (features/steps.py)
```python from lettuce import step, world from selenium import webdriver from
(truncated - see the full file via the links below)
File tree — 3 files
lettuce-skill/SKILL.md
lettuce-skill/reference/advanced-patterns.md
lettuce-skill/reference/playbook.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Generate and run Lettuce BDD tests with feature files and step definitions for Python”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill automates the creation of Behave test frameworks, enabling you to write behavior-driven development scenarios in Gherkin syntax and corresponding Python step definitions. It streamlines test organization and execution, making it easier to align automated testing with business requirements and maintain readable test suites.
This skill enables you to create and run Behat behavior-driven development tests using Gherkin syntax, making it straightforward to validate PHP web application behavior through readable, executable specifications. Leverage structured scenario definitions to bridge the gap between business requirements and automated test coverage.
This skill enables you to set up and verify HyperExecute YAML configurations for running tests across LambdaTest's cloud infrastructure. Automate your test execution pipeline by defining job parameters, parallelization settings, and validation rules directly within your workflow.
This skill enables you to generate and author Nemo.js end-to-end tests for web applications, streamlining test automation workflows. Leverage AI-powered test generation to accelerate your QA processes and reduce manual testing overhead.
This skill generates Serenity BDD test automation code structured around the Screenplay pattern, enabling you to build maintainable step definitions and test scenarios. Leverage AI-assisted code generation to accelerate behavior-driven development and reduce manual test scripting overhead.
This skill automates the creation of SpecFlow test scenarios and step definitions for C# .NET projects, enabling teams to implement behavior-driven development workflows efficiently. It generates executable BDD test code that bridges business requirements with automated test coverage, streamlining the test development lifecycle.
More skills xcuitest-skill (MIT) · cicd-pipeline-skill (MIT)