Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Cucumber to BDDfy NUnit2-Tests
Cucumber to BDDfy NUnit2-Tests

Cucumber to BDDfy NUnit2-Tests

Max Schorpp

|
500 installs
| (0) | Free
Converts Cucumber *.feature Files to BDDfy Nunit 2 Tests via Context Menue on the file in Solution Explorer
Download

This extension is still in work...

Convert feature files to BDDfy Nunit 2 C# Tests (similar to specflow)

it takes a *.feature file, like in the following example, to generate the BDDfy tests.

Feature: Account Holder withdraws cash
As an Account Holder
I want to withdraw cash from an ATM
So that I can get money when the bank is closed

Scenario 1: Card has been disabled
Given a credit-card is disabled
When the Account Holder requests $20
Then the ATM should retain the card
  And the ATM should say the card has been retained

This file will be converted to:

[TestMethod]
public void CardHasBeenDisabled()
{
	this.Given(s => s.GivenTheCardIsDisabled())
		.When(s => s.WhenTheAccountHolderRequests20())
		.Then(s => s.ThenTheATMShouldRetainTheCard)
			.And(s => s.AndTheAtmShouldSayTheCardHasBeenRetained())
		.BDDfy();
}

and the corresponding method stubs...

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft