• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom Test Rigs in Xcode 4.6.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Test Rigs in Xcode 4.6.2


  • Subject: Custom Test Rigs in Xcode 4.6.2
  • From: Jeff Kelley <email@hidden>
  • Date: Fri, 07 Jun 2013 14:21:56 -0400

I’m trying to write a custom unit test that launches my app and tests it with Calabash. Everything seems to be working pretty well so far, but the pièce de résistance is going to be hitting ⌘U in Xcode and running my logic tests, then my UI tests with Calabash. To do this, my plan is to make a simple CalabashRunner utility that will serve as the test rig for my tests, launching the cucumber utility to run my tests.

Unfortunately, as reported originally in rdar://13316747, it looks like Xcode 4.6 disregards the TEST_RIG setting. What’s more, if I change the WRAPPER_EXTENSION setting from “octest,” Xcode crashes immediately on testing. It looks like the crash is due to a RunnableDisplayName being nil (crash log attached).

Is there a currently-supported way for me to run an arbitrary binary as a unit test? I’m so close to my ideal testing setup, I can taste it. I can sort of achieve this now by running my UI tests in a build script, but that simply fails the build if the tests fail.

Bonus question: assuming we get this part working, is there a resource to see what output format Xcode expects from a unit test so I can get pretty green checkboxes when my scenarios pass?


Jeff Kelley
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Adding a 3rd party C++ library to ObjectiveC project
  • Next by Date: Re: Xcode problems??
  • Previous by thread: Re: Adding a 3rd party C++ library to ObjectiveC project
  • Next by thread: Signing Apps And Certificates
  • Index(es):
    • Date
    • Thread