黄瓜替代.NET [英] Cucumber alternative for .NET

查看:260
本文介绍了黄瓜替代.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速的,有没有人遇到类似Ruby的黄瓜(人类可读的DSL来定义,可以对测试用例的故事)在.NET领域的库?

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?

推荐答案

您也应该检查出 SpecFlow ,这是一个开放源代码项目做BDD与.NET。

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

SpecFlow使用相同的高清格式(小黄瓜),像黄瓜,但是你可以写你的步骤定义在.NET。它基本上生成单元测试类(NUnit的,MSTest的,的xUnit,等等)的特性文件,因此你可以使用相同的单元测试执行引擎,像你这样的真正的单元测试。这种方法,也更容易了BDD功能测试集成到集成构建

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.

在最近的版本SpecFlow具有Visual Studio 2010和支持Silverlight和语法着色功能,单声道/ MonoDevelop的。

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

这篇关于黄瓜替代.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆