BDD 与 ASP.NET MVC

发布于 2024-08-22 22:55:45 字数 250 浏览 3 评论 0原文

我刚刚开始开发 ASP.NET MVC Web 应用程序。 我喜欢 ASP.NET MVC 的一件事是内置的测试环境。它使您可以编写单元测试并构建测试驱动的 Web 应用程序 (TDD)。 但是我错过了进行行为驱动开发(BDD)的可能性

使用 Ruby On Rails 和 Cucumber 可以很好地完成 BDD。
但是有没有办法在 ASP.NET MVC 中以 BDD 方式做到这一点?

I just started devoloping ASP.NET MVC Web applicatons.
One thing I like about ASP.NET MVC is the built in test environment. It gives you the possibility to write unit tests and built test driven web applications (TDD).
But I'm missing the possibility to do behaviour driven development (BDD).

BDD can be done nicely using Ruby On Rails and Cucumber.
But is there a way to do it the BDD way in ASP.NET MVC?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往事风中埋 2024-08-29 22:55:45

查看 SpecFlow。它是 .Net 的 BDD 框架,并与 VisualStudio 集成。
您可以将它与 Selenium 或 WatiN 结合起来,通过 ASP.NET 执行 BDD。

SpecFlow 团队目前正在使用 SpecFlow 和 Selenium 开发 ASP.NET MVC 示例,请观看网站。

另一种方法是使用 Cuke4Nuke,Cucumber for .Net 的直接端口。 此处 是使用 Cuke4Nuke 和 WatiN 的示例。

Check out SpecFlow. It is a BDD framework for .Net and integrates with VisualStudio.
You can combine it with Selenium or WatiN to do BDD with ASP.NET.

The SpecFlow team is currently working on an ASP.NET MVC example using SpecFlow and Selenium, watch the website.

An alternative is using Cuke4Nuke, the direct port of Cucumber for .Net. Here is an example using Cuke4Nuke with WatiN.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文