Skip to Main Content
Cucumber Recipes
book

Cucumber Recipes

by Ian Dees, Matt Wynne, Aslak Hellesoy
February 2013
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 45m
English
Pragmatic Bookshelf
Content preview from Cucumber Recipes
Recipe 24Test .NET Code with SpecFlow

Problem

You want to execute .NET code from a Cucumber test. For example, you might be writing integration tests for an ASP.NET web application or GUI tests for a desktop app. Because your GUI test framework or your web components are written in C#, you need to be able to call them from the .NET universe.

Ingredients

  • Microsoft Visual Studio Professional[152] 2010 or 2012 for building the examples

  • SpecFlow for parsing Cucumber syntax[153]

  • A test runner such as NUnit,[154] xUnit.net,[155] or SpecRun[156]

  • The NuGet package manager[157] to install SpecFlow and the test runner

Solution

SpecFlow is an open source test framework that recognizes Cucumber’s Gherkin syntax (in fact, it uses the same Gherkin ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cucumber Cookbook

Cucumber Cookbook

Shankar Garg
Basiswissen Softwaretest , 6th Edition

Basiswissen Softwaretest , 6th Edition

Andreas Spillner, Tilo Linz
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781941222607Errata