有用于 VB.NET 开发的 BDD/TDD 工具吗?
我负责为我的公司重写一个内部工具。我目前正在重新设计最耗时的步骤以运行得更快,这应该让我有时间重新考虑应用程序的设计以进行完全重写,因为插页式版本将满足当前的需求。
我真的很想利用这个机会使用 BDD/TDD 来实现此代码,但总体来说我对这种编程方法很陌生,尤其是在 .NET 上下文中。是否有适用于 .NET 的 BDD/TDD 工具?我应该查看哪些资源?
预先非常感谢您!
阿什什
I am responsible for rewriting an internal tool for my company. I am currently reworking the most time consuming step to run faster which should give me time to re-think the design of the application for a full rewrite as the interstitial version will meet the current needs.
I really want to take this opportunity to implement this code using BDD/TDD but I am new to this method of programming in general and especially within the context of .NET. Are there BDD/TDD tools available for .NET? What resources should I look at?
Thank you very much in advance!
Ashish
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如我们在 alt.net oresund 会议上讨论 BDD 时一位成员开玩笑说的那样:“.Net 的 BDD 框架比使用它们的人还多”;-)
当开始使用 BDD 或进行可执行的验收测试时,我建议首先了解“故事中有什么”(即如何定义 在
确定了其中一些要求后,然后您就可以找到适合您特定环境的特定需求的工具,
我当前的项目中,我们选择了StoryQ 作为我们的 BDD 工具,因为我们已经在使用 NUnit 和 TestDriven.Net,并且除了程序集引用之外不需要添加任何内容(没有单独的测试运行器 Cucumber
在前面提到的 alt.net 会议上,其中一位成员演示了如何在 IronRuby 下使用 用 C# 编写的应用程序。
许多人欣赏 Cucumber 将简单的英语变成需求的方式,为什么这可能值得研究。
As one of the members joked when we discussed BDD at one of our alt.net oresund meetings: "there are more BDD frameworks for .Net, than there are people using them" ;-)
When starting with BDD, or having executable acceptance tests, I recommend to first understand "what's in a story" (i.e. how to define the requirements.
Having nailed a few of those, then you can go find a tool that fits your particular needs in your particular context.
At my current project we chose StoryQ as our BDD tool since we were already using NUnit and TestDriven.Net, and didn't have to add anything but an assembly reference (no separate test runner, etc).
At the aforementioned alt.net meeting, one of the members demonstrated using Cucumber under IronRuby for an app written in C#.
Many people appreciate the way Cucumber turns plain English into requirements, why that might be worth investigating.
Resharper、Nunit、xUnit、MBUnit 只是我脑海中浮现的一些东西。
Resharper 因为它有很好的测试运行器和简洁的重构功能。 (不是免费的)
NUnit,因为我现在使用它。 (免费)
不再覆盖,因为有时您会错过一个位置。 (不再免费)。
Structuremap 因为 IoC/Di 是给定的。 (免费)
Rhino 进行模拟,因为您需要存根和模拟。 (免费)
ASP.Net MVC 如果您需要 Web 开发。
这只是我当前的堆栈。
我忘记了其他几个。但大多数在 C# 中工作的东西现在也可以在 VB.Net 中工作。它们在 VB.Net 10 中会工作得更好
Resharper, Nunit, xUnit, MBUnit, are just some of the things that spring to mind.
Resharper because of the nice testrunner and the neat refactorings it can do. (not free)
NUnit because I use that now. (free)
NCover because sometimes you miss a spot. (not free anymore).
Structuremap because IoC/Di is a given. (free)
Rhino mocks because you need to stub and mock. (free)
ASP.Net MVC if you need webdevelopment.
That is just my current stack.
I forgot a few others. But most things that work in C# will now work in VB.Net. And they will work even better in VB.Net 10