.net 中流行哪些 BDD 框架?

发布于 2024-08-23 12:11:42 字数 88 浏览 5 评论 0 原文

我最近开始涉足 BDD,并认为它作为一种让利益相关者在我们作为开发人员为他们创建的应用程序中重新获得声音的方法,前景广阔。您最喜欢的 BDD 框架是什么?为什么?

I've recently been getting into BDD and think it holds great promise as a way to get a stakeholder's voice back in the apps we, as developers, create for them. What's your favorite BDD framework and why?

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

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

发布评论

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

评论(5

绿阴红影里的.如风往事 2024-08-30 12:11:42

我个人最喜欢的是 MSpec 因为我真的很喜欢与 Resharper 的集成。使用 BDD 风格的测试对我来说读起来更好,而且 MSPec 是一个很好用的轻量级框架。

这里还有一些其他流行的框架:

编辑:

我在过去一个月左右开始使用 StoryQ,并且发现它非常好。事实上,我更喜欢它而不是 MSpec。会看看事情结果如何。

My personal favourite is MSpec since I really like the integration with Resharper. Using BDD style tests reads a lot better for me and MSPec is a nice, light framework to use.

Here some other popular frameworks:

EDIT:

I've started using StoryQ in the past month or so, and have found it to be really good. In fact, I'm preferring it over MSpec. Will see how things turn out.

白鸥掠海 2024-08-30 12:11:42

我没有使用过其他任何一个,但很欣赏我当前项目中的 StoryQ 因为它使用了 NUnit,这使得故事的运行就像任何其他单元测试一样,因此允许我像往常一样使用 TestDriven.Net。

此外,HTML 报告非常好,可以让利益相关者跟踪进度(我们的 TeamCity 服务器上的网页)。

I haven't used any of the others, but appreciate StoryQ in my current projects since it uses NUnit which make the stories run just like any other unit test, hence allowing me to use TestDriven.Net as usual.

Also, the HTML report is very nice in order for the stakeholders to follow the progress (a web page on our TeamCity server).

硪扪都還晓 2024-08-30 12:11:42

看看 SpecFlow - 它对我来说看起来相当不错。在 BDD 代码营演示之后,我决定给它一个机会,看看它如何适合我的工作流程。 此处有一些由 Brady Gaster 制作的 BDD 视频。相当不错的东西。

Take a look at SpecFlow - it looks pretty good to me. Following a code camp presentation on BDD, I've decided to give it a chance and see how it fits into my work flow. There are some videos doing BDD here by Brady Gaster. Pretty good stuff.

平安喜乐 2024-08-30 12:11:42

我相信 MSpec 越来越受欢迎。

I believe MSpec has growing popularity.

终陌 2024-08-30 12:11:42

我喜欢 Concordion.NET,因为它非常灵活且功能强大。最近它与 NUnit 集成来运行 Concordion.NET 测试: https://github.com/concordion/concordion -net 因此,它可以在任何支持 NUnit 测试执行的环境中使用。
Concordion.NET 是行为驱动开发 (BDD) 的开源框架。预期行为的规范是用 HTML 编写的,因此可以轻松地超链接到可导航的结构中。这些文件包含对在 NUnit 的帮助下执行的测试代码中的固定装置的引用。 Concordion.NET 验收测试非常具有可读性,它们可以兼作系统文档。而且,由于测试是针对系统运行的,因此您可以确信文档始终是最新的。

I like Concordion.NET as it is very flexible and powerful. Lately it was integrated with NUnit to run the Concordion.NET tests: https://github.com/concordion/concordion-net Thus, it can be used with any environment that supports NUnit test execution.
Concordion.NET is an open source framework for Behavior Driven Development (BDD). Specifications of the expected behavior are written in HTML, so can be easily hyperlinked into a navigable structure. These files contain references to fixtures in test code that are executed with the help of NUnit. Concordion.NET acceptance tests are so readable, they can double up as system documentation. And, since the tests run against the system, you can be confident the documentation is always up-to-date.

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