Cuke4Nuke 还是 SpecFlow? [英] Cuke4Nuke or SpecFlow?

查看:28
本文介绍了Cuke4Nuke 还是 SpecFlow?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在决定是否应该使用 Cuke4Nuke 或 SpecFlow.各自的优缺点是什么?关于哪个更好以及为什么更好的意见.

I am trying to decide if I should use Cuke4Nuke or SpecFlow. What are the pro/cons of each? Opinions on which is better and why.

谢谢!

推荐答案

(我可能有偏见,因为我参与了 SpecFlow,但在这里我的想法...)

(I might be biased because I am involved with SpecFlow, but here my thoughts...)

Cuke4Nuke 非常接近 Cucumber.这承诺了很多优势:

Cuke4Nuke is very close to Cucumber. This promises a lot of advantages:

  • 兼容性
  • 在 Cucumber 发展过程中从 Cucumber 获得新功能(至少在理论上如此,但语言支持就是一个例子)
  • 成为 Cucumber 社区和 Cucumber 生态系统的真正一部分

然而,这也带来了一些潜在的缺点:

However this comes also with some potential disadvantages:

  • Ruby 是必需品
  • 由于涉及更多基础设施(Ruby、Wire-Protocol、命令行集成...),整个解决方案的复杂性增加,链中某些部分出现故障的可能性增加
  • 调试是可能的,但有点麻烦一个>
  • 在 dos 命令行上运行场景非常难看,而且我仍然对某些字符(德语元音变音)有问题.就我而言,Cucumber 的 解决方案 不适用于 cuke4nuke.
  • 与持续构建的集成是您必须自己解决的问题
  • Ruby is a necessity
  • Since more infrastructure (Ruby, Wire-Protocol, command-line integration...) is involved, the complexity of the whole solution rises, and chances that something in the chain is failing rise
  • Debugging is possible but a bit of a hassle
  • Running scenarios on the dos-commandline is just plain ugly, and I still have problems with some characters (German Umlaute). The solutions from Cucumber did not work for cuke4nuke in my case.
  • Integration with your continuous build is something you have to work out for yourself

SpecFlow 是一个独立于 Cucumber 的项目.它试图尽可能接近 Cucumber,但存在并将存在差距.有计划使用与 Cucumber 相同的解析器,以提高语言层面的兼容性.

SpecFlow is a separate project from Cucumber. It tries to be as close to Cucumber as possible, but there are and will be gaps. There are plans to use the same parser as Cucumber, to improve compatibility on the language level.

SpecFlow 试图提供以下优势:

SpecFlow tries to offer the following advantages:

  • 纯 .NET 解决方案(因此无需安装 Ruby,运行时不涉及 Ruby)
  • 与 VisualStudio 有一个基本的集成(并且有改进的计划)
  • 场景基本上是 UnitTest,可以使用您现有的基础架构(NUnit.Runners、ReSharper、VisualStudio MSTest 集成...)运行.
  • 场景和步骤很容易从 VisualStudio 中调试出来(只需设置一个断点)
  • 集成到您的持续构建中应该是轻而易举的,因为运行单元测试的基础设施肯定已经存在

作为我目前看到的 SpecFlow 的缺点:

As disadvantages of SpecFlow I see currently:

  • 它支持的语言不如 Cucumber 多
  • 目前有一个代码生成"步骤.这在使用 VisualStudio 时是透明的,没有 VisualStudio 有一个命令行可以做到这一点,但很多人不喜欢代码生成.
  • 目前没有明确的 SpecFlow 命令行运行程序.但是,您可以使用单元测试命令行运行程序.
  • SpecFlow 依赖于 Unit-Test 框架,目前仅支持 NUnit 和 MSTest
  • SpecFlow 中的报告还不是很复杂.Cucumber 确实提供了更多选项,但我不知道 cuke4nuke 中是否都提供这些选项...

这篇关于Cuke4Nuke 还是 SpecFlow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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