Cucumber BDD Testing
Testing & QualityCucumber BDD Testing is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Cucumber/Gherkin BDD testing for behavior-driven development workflows
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/qa-testing-automation/skills/cucumber-bdd/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cucumber-bdd-testing, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Cucumber BDD Testing Skill
Overview
This skill provides expert-level capabilities for Cucumber-based BDD testing, enabling feature file creation, step definition generation, and living documentation.
Capabilities
Feature File Development
- Write Gherkin feature files
- Structure scenarios effectively
- Implement scenario outlines
- Use backgrounds for common setup
Step Definition Generation
- Generate step definitions from features
- Implement reusable step patterns
- Handle step parameters and transformations
Data Handling
- Handle data tables
- Implement doc strings
- Configure example tables for outlines
Configuration
- Configure Cucumber profiles
- Set up parallel execution
- Configure formatters and reporters
Tag Management
- Implement tag-based test filtering
- Configure tag expressions
- Organize tests with tags
Reporting
- Generate Cucumber reports
- HTML and JSON formatters
- JUnit XML output
Living Documentation
- Generate living documentation
- Keep specs and tests synchronized
- Enable non-technical stakeholder collaboration
Framework Integration
- Integration with Playwright/Cypress
- Integration with Selenium
- Integration with API testing frameworks
Target Processes
e2e-test-suite.js- BDD-style E2E teststest-strategy.js- BDD strategy implementationshift-left-testing.js- Early BDD adoption
Dependencies
@cucumber/cucumber- Cucumber.js- Step definition framework
- Test automation framework
Usage Example
{
kind: 'skill',
skill: {
name: 'cucumber-bdd',
context: {
action: 'execute-features',
featurePath: 'features/**/*.feature',
tags: '@smoke and not @wip',
format: ['html:reports/cucumber.html', 'json:reports/cucumber.json']
}
}
}
Configuration
The skill uses cucumber.js configuration file and supports multiple output formats.