Cucumber alternative for .NET

前端 未结 8 564
说谎
说谎 2020-12-07 11:52

Quick one, has anyone come across a library similar to Ruby\'s cucumber (a human readable DSL for defining use case stories that can be tested against) in the .NET sphere? <

8条回答
  •  再見小時候
    2020-12-07 12:49

    You should also check out SpecFlow, that is an open-source project to do BDD with .NET.

    SpecFlow is using the same definition format (Gherkin), like cucumber, but you can write your step definitions in .NET. It basically generates unit-test classes (NUnit, MsTest, xUnit, etc.) from your feature files, so you can use the same unit test execution engine, like you do with the real unit tests. This way it is also easier to integrate the BDD functional tests to the integration build.

    In the recent versions SpecFlow has a syntax coloring feature for Visual Studio 2010 and support for Silverlight and Mono/MonoDevelop.

提交回复
热议问题