acceptance-testing
БесплатноБез исполняемых скриптовНе проверенUse for verifying business requirements with executable specifications using BDD frameworks. Covers Cucumber (Java, JS, Ruby), SpecFlow/Reqnroll (C#), Behave…
от onfire7777★ 17 звёзд на GitHubОб этом скилле
Acceptance Testing (BDD)
Overview
Acceptance testing verifies that software meets business requirements by executing human-readable specifications. Behavior-Driven Development (BDD) bridges the gap between business stakeholders and developers through a collaborative workflow: business rules are written as executable specifications (feature files), automated with step definitions, and run as part of the CI pipeline.
For Gherkin specification syntax (Given/When/Then), see specs/documentation/gherkin. For Gauge specification syntax (Markdown specs), see specs/documentation/gauge.
BDD Workflow
Collaborate Specify Automate Validate
┌──────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Business │────►│ Feature │───►│ Step │──►│ CI Pipeline │
│ + Dev + │ │ Files │ │ Definitions │ │ Execution │
│ QA discuss│ │ (Gherkin/ │ │ (code that │ │ + Reports │
│ examples │ │ Gauge spec) │ │ runs specs) │ │ │
└──────────┘ └──────────────┘ └──────────────┘ └──────────────┘
- Collaborate — Business, dev, and QA discuss requirements using concrete examples (Example Mapping, Three Amigos).
- Specify — Write executable specifications in Gherkin or Gauge Markdown format.
- Automate — Implement step definitions that translate specification steps into code.
- Validate — Run specifications as automated tests in CI; generate living documentation.
Cross-Platform Tools
| Tool | Languages | Spec Format | Strengths |
|---|---|---|---|
| Cucumber | Java, JS/TS, Ruby | Gherkin (.feature) | Industry standard, largest ecosystem |
| SpecFlow / Reqnroll | C# (.NET) | Gherkin (.feature) | .NET-native, context injection, parallel execution |
| Behave | Python | Gherkin (.feature) | Pythonic, fixtures, environment hooks |
| Gauge | Java, JS, C#, Python, Ruby, Go | Markdown (.spec) | Markdown specs, concept reuse, data tables |
| Godog | Go | Gherkin (.feature) | Go-native, godog.Suite, step definitions |
Gherkin Feature File Example
# features/user-registration.feature
Feature: User Registration
As a new visitor
I want to create an account
So that I can access personalized features
Background:
Given the registration page is displayed
Scenario: Successful registration with valid details
When I fill in the registration form with:
| field | value |
| name | Jane Doe |
| email | [email protected] |
| password | SecurePass123! |
And I accept the terms of service
And I click the "Register" button
Then I should see a welcome message "Welcome, Jane Doe!"
And a confirmation email should be sent to "[email protected]"
Scenario: Registration fails with duplicate email
Given a user exists with email "[email protected]"
When I fill in the registration form with:
| field | value |
| name | Jane Doe |
| email | [email protected] |
| password | SecurePass123! |
And I click the "Register" button
Then I should see an error "An account with this email already exists"
Scenario Outline: Registration fails with invalid input
When I fill in "<field>" with "<value>"
And I click the "Register" button
Then I should see an error "<error>"
Examples:
| field | value | error |
| name | | Name is required |
| email | not-an-email | Please enter a valid email address |
| password | short | Password must be at least 8 chars |
Step Definitions by Language
JavaScript / TypeScript (Cucumber.js)
// features/step-definitions/registration.steps.js
const { Given, When, Then } = require("@cucumber/cucumber");
const { expect } = require("@playwright/test");
Given("the registration page is displayed", async function () {
await this.page.goto("/register");
await expect(this.page.locator("h1")).toHaveText("Create Account");
});
Given("a user exists with email {string}", async function (email) {
// Seed the database or call an API to create the user
await this.api.post("/test/seed-user", { email });
});
When("I fill in the registration form with:", async function (dataTable) {
const rows = dataTable.rowsHash();
for (const [field, value] of Object.entries(rows)) {
await this.page.fill(`[name="${field}"]`, value);
}
});
When("I fill in {string} with {string}", async function (field, value) {
await this.page.fill(`[name="${field}"]`, value);
});
When("I accept the terms of service", async function () {
await this.page.check("#terms-checkbox");
});
When("I click the {string} button", async function (buttonText) {
await this.page.click(`b
Установить acceptance-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл acceptance-testing?
Use for verifying business requirements with executable specifications using BDD frameworks. Covers Cucumber (Java, JS, Ruby), SpecFlow/Reqnroll (C#), Behave (Python), Gauge (ThoughtWorks), and Godog (Go). Includes Gherkin feature files, step definitions, BDD workflow, and cross-language examples. USE FOR: Cucumber, SpecFlow, Reqnroll, Behave, Gauge, Godog, BDD test automation, step definitions, acceptance criteria verification, Given-When-Then execution, executable specifications, living documentation DO NOT USE FOR: writing Gherkin specification syntax (use specs/documentation/gherkin), writing Gauge specification syntax (use specs/documentation/gauge), unit testing (use unit-testing), API testing (use api-testing)
Как установить скилл acceptance-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл acceptance-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic