使用 MacRuby 测试 iPhone 应用程序?
我有一个用 Objective-C 编写的现有 iPhone 应用程序,我想向其中添加一些自动化测试。我读过这篇关于使用 MacRuby 进行测试的文章,这听起来不错,但它的目的是测试桌面框架。
如何将 MacRuby 测试添加到我的 iPhone 应用程序中? Ruby 代码无法识别我的 Objective-C 类,而且我不知道如何设置它来做到这一点。我是否需要以某种方式将其指向已编译的代码或标头?
I have an existing iPhone app, written in Objective-C, that I'd like to add some automated tests to. I've read this article about testing with MacRuby, which sounds great but it's aimed at testing desktop frameworks.
How can I add MacRuby tests to my iPhone app? The Ruby code doesn't recognize my Objective-C classes, and I don't know how to set it up to do that. Do I need to somehow point it at the compiled code or the headers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
rbiphonetest 为我工作使用常规 ruby 的 iPhone OS 2 和 3.x 天。但它相当有限。我还没有专门用 4.x 或 macruby 进行过尝试。
rbiphonetest worked for me back in the iPhone OS 2 and 3.x days with regular ruby. It was fairly limited though. I haven't tried it with 4.x or macruby specifically.
MacRuby 不能在 iOS 上运行,我也认为这种情况不会很快发生。我一直在研究 Bacon(Ruby rspec 克隆)到 Nu 语言的端口: https://github.com /合金/NuBacon。我仍然需要做一些清理工作并写一篇关于它的博客文章,我会看看今天是否能抽出一些时间来做这件事。
MacRuby doesn't run on iOS, nor do I see that happening any time soon. I have been working on a port of Bacon (a Ruby rspec clone) to the Nu language: https://github.com/alloy/NuBacon. I still have to do some cleaning and write a blog post about it, I'll see if I can spare some time today to do so.