skillfed

specflow-skill

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.

specflow-skill enables you to write SpecFlow tests in C# by generating feature files using Gherkin syntax and corresponding step bindings. You define scenarios with [Given], [When], and [Then] attributes that map to your test logic. specflow-skill automates the creation of these step definitions, allowing you to focus on behavior-driven development rather than boilerplate code. The skill integrates with your C# .NET project structure to produce executable BDD tests that validate business requirements.

AI-generated summary based on this skill's SKILL.md

339 68 MIT updated by LambdaTest

Install

LambdaTest/agent-skills/specflow-skill · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/LambdaTest/agent-skills
cp -r agent-skills/specflow-skill ~/.claude/skills/specflow-skill

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I write SpecFlow tests in C#?

specflow-skill enables you to write SpecFlow tests in C# by generating feature files using Gherkin syntax and corresponding step bindings. You define scenarios with [Given], [When], and [Then] attributes that map to your test logic. specflow-skill automates the creation of these step definitions, allowing you to focus on behavior-driven development rather than boilerplate code. The skill integrates with your C# .NET project structure to produce executable BDD tests that validate business requirements.

What is SpecFlow Gherkin feature file syntax and how do I structure scenarios?

specflow-skill helps you master Gherkin feature file syntax, which uses plain-language keywords like Feature, Scenario, Given, When, and Then to describe test behavior. Each scenario outlines a specific use case: Given sets up the initial state, When describes an action, and Then verifies the outcome. specflow-skill generates properly structured feature files and scenario outlines that organize multiple test cases efficiently, making your BDD tests readable to both technical and non-technical stakeholders.

How do I set up SpecFlow with NUnit or xUnit test frameworks?

specflow-skill streamlines SpecFlow integration with NUnit or xUnit by automating the configuration and setup process for your C# .NET applications. The skill generates the necessary project dependencies, binding classes, and test runner configurations required to execute SpecFlow scenarios within your chosen framework. Whether you select NUnit or xUnit, specflow-skill ensures your test environment is properly initialized so you can run BDD tests immediately without manual framework wiring.

What are SpecFlow hooks and how do I configure dependency injection for test setup and teardown?

specflow-skill generates SpecFlow hooks using [BeforeScenario] and [AfterScenario] attributes to manage test setup and teardown operations. The skill configures dependency injection contexts that allow you to share state between step definitions and initialize resources before each scenario runs. By automating hook configuration, specflow-skill eliminates manual context management, ensuring your test fixtures are properly initialized and cleaned up, which improves test reliability and reduces flaky test failures.

Can specflow-skill generate SpecFlow scenarios for .NET applications?

Yes, specflow-skill automates the generation of SpecFlow scenarios and step bindings specifically designed for .NET applications. The skill produces executable BDD test code that bridges business requirements with automated test coverage, streamlining your test development lifecycle. By generating feature files, step definitions, and supporting infrastructure, specflow-skill enables teams to implement behavior-driven development workflows efficiently without writing repetitive boilerplate code.

How can I execute SpecFlow tests on cloud platforms like LambdaTest?

specflow-skill supports executing SpecFlow tests on cloud platforms such as LambdaTest by generating test configurations and remote WebDriver bindings. The skill automates the setup of cloud-based test execution environments, allowing your C# .NET BDD tests to run across multiple browsers and operating systems without local infrastructure overhead. This capability enables distributed test execution, faster feedback cycles, and improved test coverage across diverse environments.

SKILL.md

rendered from the published skill — quoted content, verbatim

SpecFlow BDD Skill

Core Patterns

Feature File (Features/Login.feature)

```gherkin Feature: User Login

Scenario: Successful login Given I am on the login page When I enter "user@test.com" as email And I enter "password123" as password And I click the login button Then I should see the dashboard And the welcome message should contain "Welcome"

Scenario: Invalid credentials Given I am on the login page When I enter "wrong@test.com" as email And I enter "wrong" as password And I click the login button Then I should see error "Invalid credentials"

Scenario Outline: Login with various users Given I am on the login page When I enter "<email>" as email And I enter "<password>" as password And I click

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 3 files
specflow-skill/SKILL.md
specflow-skill/reference/advanced-patterns.md
specflow-skill/reference/playbook.md

Related skills

Tags

behavior-driven-development gherkin-syntax dotnet-testing test-automation-framework scenario-based-testing step-definitions browser-automation cloud-testing-integration acceptance-testing test-hooks