Using MacRuby to test your iPhone app?

I have an existing iPhone application written in Objective-C that I would like to add some automated tests. I read an article about testing with MacRuby , which sounds great, but it aims to test the desktop framework.

How to add MacRuby tests to iPhone app? Ruby code does not recognize my Objective-C classes, and I do not know how to configure it for this. Do I need to somehow point it to compiled code or headers?

+3
source share
2 answers

rbiphonetest worked for me on iPhone OS 2 and 3.x with regular ruby. It was pretty limited. I have not tried this with 4.x or macruby specifically.

0
source

MacRuby does not start on iOS, and I don’t see it happening anytime soon. I worked on the Bacon port (Ruby rspec clone) in the Nu language: https://github.com/alloy/NuBacon . I still need to do a cleanup and write a blog post about this, I will see if I can spend some time today on this.

0
source

Source: https://habr.com/ru/post/1781303/


All Articles