3

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?

Justin Voss
  • 6,294
  • 6
  • 35
  • 39

2 Answers2

0

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.

Stephen Petschulat
  • 1,159
  • 2
  • 14
  • 23
0

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.

alloy
  • 20,908
  • 2
  • 30
  • 40