Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

acceptance-testing

БесплатноБез исполняемых скриптовНе проверен

Use for verifying business requirements with executable specifications using BDD frameworks. Covers Cucumber (Java, JS, Ruby), SpecFlow/Reqnroll (C#), Behave…

onfire7777от 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) │   │              │
 └──────────┘     └──────────────┘    └──────────────┘   └──────────────┘
  1. Collaborate — Business, dev, and QA discuss requirements using concrete examples (Example Mapping, Three Amigos).
  2. Specify — Write executable specifications in Gherkin or Gauge Markdown format.
  3. Automate — Implement step definitions that translate specification steps into code.
  4. 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
Полный SKILL.md на GitHub

Установить acceptance-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdREADME.mdmetadata.jsonrules/_sections.mdrules/_template.mdrules/acceptance-testing-coupled-scenarios.mdrules/acceptance-testing-generate-html-reports-for-stakeholder-review-cucumber.mdrules/acceptance-testing-hold-three-amigos-sessions-business-dev-qa-before.mdrules/acceptance-testing-imperative-style.mdrules/acceptance-testing-incidental-details.mdrules/acceptance-testing-keep-scenarios-independent.mdrules/acceptance-testing-keep-step-definitions-thin.mdrules/acceptance-testing-limit-scenarios-to-3-8-steps-if-longer-consider-splitting.mdrules/acceptance-testing-parallelize-scenario-execution-where-frameworks-support-it.mdrules/acceptance-testing-reuse-step-definitions-across-features-avoid-duplicating.mdrules/acceptance-testing-run-acceptance-tests-in-ci-on-every-pr-for-critical-flows.mdrules/acceptance-testing-separate-fast-api-level-acceptance-tests-from-slow.mdrules/acceptance-testing-tag-scenarios-smoke-regression-wip-to-run-subsets-in.mdrules/acceptance-testing-testing-implementation.mdrules/acceptance-testing-too-many-scenarios.mdrules/acceptance-testing-treat-feature-files-as-living-documentation.mdrules/acceptance-testing-use-concrete-examples-with-real-data-not-abstract.mdrules/acceptance-testing-use-dedicated-test-environments-with-seeded-data-for.mdrules/acceptance-testing-use-example-mapping-to-discover-acceptance-criteria-rules.mdrules/acceptance-testing-use-hooks-before-after-for-setup-and-teardown-not-step.mdrules/acceptance-testing-use-parameterized-steps-with-cucumber-expressions-or-regex.mdrules/acceptance-testing-use-scenario-outlines-data-tables-for-testing-multiple.mdrules/acceptance-testing-write-specifications-before-code.mdrules/acceptance-testing-write-specifications-in-domain-language-not-ui.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить acceptance-testing с