generating-bdd-tests
Generates comprehensive BDD test files (Jest + Cucumber) for React 16 components.
Skill by nic611
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nic611-generating-bdd-tests
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/generating-bdd-tests
What's inside
- Skill name
generating-bdd-tests- Description
- Generates comprehensive BDD test files (Jest + Cucumber) for React 16 components. Automatically creates feature files, step definitions, and unit tests targeting 85% code coverage. Use when user asks to generate tests, improve coverage, or create BDD scenarios for React components.
- License
- MIT
- Instructions
- 193 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "generating-bdd-tests" does not match folder "bdd-generator"
Files (1)
- SKILL.md
SKILL.md (first lines)
> **中文說明:** 為 React 16 組件生成完整 BDD 測試套件,包括 `.feature` 文件、step definitions、Jest 單元測試,目標覆蓋率 85%+。用戶說「生成測試」、「提升覆蓋率」、「寫 BDD」時觸發。
> **English:** Generates complete BDD test suites (Cucumber feature files + step definitions + Jest unit tests) for React 16 components, targeting 85% coverage.
# BDD Test Generator for React 16
## Overview
This skill generates complete BDD test suites for React 16 components, including:
- Cucumber feature files (.feature)
- Step definitions
- Jest unit tests
- Coverage-optimized test cases
## When to Use
- User asks to "generate tests" or "write tests"
- User wants to "improve coverage" or "increase coverage"
- User provides a React component and needs test files
- User mentions "BDD", "Cucumber", or "feature file"
## Instructions
### Step 1: Analyze Component Structure
When given a React component, identify:
1. Props and their types
2. State variables
3. Event handlers
4. Conditional rendering logic
5. Side effects (useEffect, componentDidMount, etc.)
### Step 2: Generate Feature File
Create a `.feature` file following this template:
```gherkin
Feature: [ComponentName] functionality
As a user
I want to [main purpose]
So that [business value]
Background:
Given the component is rendered
Scenario: Initial render
Then I should see [expected initial state]
Scenario: User interaction - [action]
When I [user action]
Then I should see [expected result]
Scenario Outline: Multiple inputs
When I enter "<input>" in the field
Then I should see "<output>"
Examples:
| input | output |
| valid | success |
| invalid | error |
```
### Step 3: Generate Step Definitions
Create step definitions that map to Jest + React Testing Library:
```javascript
// [ComponentName].steps.js
import { Given, When, Then } from "@cucumber/cucumber";
import { render, screen, fireEvent } from "@testing-library/react";
import ComponentName from "./ComponentName";
let container;
Given("the component is rendered", function () {
const result = render(<ComponentName {...defaultProps} />);
container = result.container;
});
When("I click the {string} button", function (buttonText) {
fireEvent.click(screen.getByRole("button", { name: buttonText }));
});
Then("I should see {string}", function (text) {
expect(screen.getByText(text)).toBeInTheDocument();
});
```
### Step 4: Generate Unit Tests for Coverage
Create Jest tests targeting all branches:
```javascript
// [ComponentName].test.js
import React from "react";
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
import ComponentName from "./ComponentName";
describe("ComponentName", () => {
// Test default props
describe("with default props", () => {
it("renders without crashing", () => {
render(<ComponentName />);
});
});
// Test each prop variation
describe("props handling", () => {
it.each([
[{ prop1: "value1" }, "expected1"],
[{ prop1: "value2" }, "expected2"],
])("with props %o renders %s", (props, expected) => {
render(<ComponentName {...props} />);
expect(screen.getByText(expected)).toBeInTheDocument();
});
});
// Test all conditional branchesFrom nic611/claude-engineering-kit, MIT.
More from nic611/claude-engineering-kit
- 0.474score
note-connect
nic611
Finds hidden connections between notes in ~/notes/ vault.
SkillCFreshness: CClaude Code +9 - 0.474score
verification-before-completion
nic611
Forces verification (tests/build) before claiming any task is complete.
SkillCFreshness: CClaude Code +9 - 0.474score
weekly-review
nic611
Weekly review of the personal knowledge vault at ~/notes/.
SkillCFreshness: CClaude Code +9 - 0.474score
smart-reflect
nic611
Detects learning moments during conversation and extracts them into personal notes at ~/notes/.
SkillCFreshness: CClaude Code +9 - 0.470score
reviewing-react-code
nic611
Performs thorough code review for React 16 components focusing on performance, maintainability, testing, and security considerations.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 10, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/nic611/claude-engineering-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from nic611
- 0.474score
note-connect
nic611
Finds hidden connections between notes in ~/notes/ vault.
SkillCFreshness: CClaude Code +9 - 0.474score
verification-before-completion
nic611
Forces verification (tests/build) before claiming any task is complete.
SkillCFreshness: CClaude Code +9 - 0.474score
weekly-review
nic611
Weekly review of the personal knowledge vault at ~/notes/.
SkillCFreshness: CClaude Code +9 - 0.474score
smart-reflect
nic611
Detects learning moments during conversation and extracts them into personal notes at ~/notes/.
SkillCFreshness: CClaude Code +9 - 0.470score
reviewing-react-code
nic611
Performs thorough code review for React 16 components focusing on performance, maintainability, testing, and security considerations.
SkillCFreshness: CClaude Code +9
Cite this page
generating-bdd-tests skill. Agent Mart. https://agentmart.dev/skills/nic611-generating-bdd-tests (last updated 2026-10-24)