未定义的方法“bin_path”使用ironruby调用cucumber时出错
过去 2 天,我刚刚踏上 BDD 浪潮……我对 Aslak Hellesoy 在 RSpec 上的 InfoQ 视频很感兴趣。特别是与语言无关的集成测试框架声明。所以我正在考虑使用 Cucumber 测试 .Net 应用程序,这似乎是 BDD 故事运行程序的最新化身。
按照 cukes.info 和 wiki 页面上的示例来执行此操作。也安装了 IronRuby.. 然而最终结果有所不同,因为我得到了巨大的堆栈跟踪。
IronRuby 问题跟踪页面上发表了评论
Just riding on the BDD wave for the past 2 days.. I was intrigued with Aslak Hellesoy's InfoQ video on RSpec. Specifically with the language agnostic integration testing framework claims.. SO I was looking at testing a .Net app with Cucumber which seems to be the latest avatar of the BDD story runner.
Followed the examples on cukes.info and the wiki pages to do this. Installed IronRuby too..
However the end-result was different in that I get a huge stacktrace.
Posted a comment on the IronRuby Issue Tracking page for the bug
If anyone has worked around this or knows whats up... please leave a response. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
昨天我与 IronRuby 和 Cucmber 一起工作。我没有解决您的 Codeplex 票证的方法,但这对我有用。
如果可能的话,我会避免使用共享宝石模型。当我尝试这样做时,我感到很困惑,所以我选择了看起来最简单的方法。从 0.6 开始它就对我有用了。
I spent yesterday working with IronRuby and Cucmber. I don't have a solution to your codeplex ticket, but here's what worked for me.
I avoid the shared gems model if at all possible. I got confused when I tried that, so I went with what seemed easiest. It's worked for me since 0.6.
JFYI - 经过一番与神秘错误的斗争之后,这个工作终于开始工作了。尽管根据 IronRuby 开发人员的说法,这个问题应该在下一个版本中得到修复,但从今天开始,在 0.9 版本中发布我的步骤以使其正常工作
http://madcoderspeak.blogspot.com/ 2009/09/testing-net-code-with-cucumber-and.html
JFYI - Got this working after a bit of thrashing about with cryptic errors. Although this is supposed to be fixed in the next release as per the IronRuby developers, Posting my steps to get this working as of today with the 0.9 release
http://madcoderspeak.blogspot.com/2009/09/testing-net-code-with-cucumber-and.html