是否有 MonoTouch 兼容的 BDD 风格的测试框架?
我正在寻找与 monotouch 兼容的 BDD 风格测试框架。有人知道其中一个吗?
如果这样做的人能让我知道他们的规格存放在哪里,我将不胜感激。
我的想法是将它们放入自己的单点触控库中。
I am looking for a BDD style testing framework that is compatible with monotouch. Anyone know of one?
I would be grateful if anyone doing this would let me know, where they have their specs reside.
My thought was to put them in their own monotouch library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道有任何 MonoTouch 库,但还有一些其他技术可能对您有帮助。可以在不使用任何类型的框架的情况下编写场景。 以下是此类示例我的意思是。
DSL 通过一个子类来工作,该子类提供 Steps 类,每个类都涵盖一个特定的上下文。我有时也会使用下面的屏幕,特别是当屏幕在步骤之间共享时。屏幕中有实际的按钮、文本框等,并使用自动化框架来实现。
无论如何,希望这能为您提供一些可以开始的东西。如果您确实找到了合适的 BDD 框架,则可以很容易地从该框架过渡到使用真正的英语。
I don't know of any MonoTouch libraries, but there are some other techniques which might help you. It's possible to write scenarios without using any kind of framework. Here's an example of the kind of thing I mean.
The DSL works by having a subclass which provides Steps classes, each of which covers a particular context. I use Screens below that sometimes too, especially when Screens are shared between Steps. The Screens have the actual buttons, textboxes, etc. in them, and are implemented using an automation framework.
Hope this provides something you can start with, anyway. In the event that you do find a BDD framework which is suitable, it's very easy to transition from this to something using real English.
有一个 SpecFlow 插件 用于 MonoDevelop,但看起来仅适用于 MD 2.4 和 2.6。可能只需重新设计插件即可使其与 MD 2.8 一起使用。我尝试在 2.8 中安装 2.6 版本,但遇到一些依赖性问题。如果解压插件的 .mpack 文件,您可以看到其内容。这可能只是编辑 .addin.xml 以依赖 Core 2.8 和 IDe 2.8 的问题。
我希望很快就能亲自尝试一下。我真的很希望能够在 MonoDevelop 和 Mono 中使用 SpecFlow。它确实改变了我的 .NET 开发生活。
There is a SpecFlow addin for MonoDevelop, but it looks like it's only for MD 2.4 and 2.6. It May just be a matter of re-working the plugin to get it to work with MD 2.8. I've tried installing the 2.6 version in 2.8, but I get some dependency issues. If you decompress the .mpack file for the addin, you can see its contents. It MAY just be a matter of editing the .addin.xml to depend on Core 2.8 and IDe 2.8.
I hope to give this is a try myself sometime soon. I'd really like to be able to use SpecFlow in MonoDevelop and Mono. It's definitely changed my development life in .NET.