Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a single test method

Using OCUnit & Xcode, is there a way of running just one test?

Ideally, I'd be able to run just one test method, but if there's a way to just run a single test case, that would be OK too.

What I'm currently doing is running the 'Test' task which runs all of my tests, but this takes up a lot of time, which ideally could be spent doing other things.

like image 983
Akshay Rawat Avatar asked Nov 15 '22 10:11

Akshay Rawat


1 Answers

See this post from an Xcode engineer:

http://chanson.livejournal.com/119578.html

The last paragraph explains how to specify a single test case class.

For more info see Chris' entire series on unit testing:

http://chanson.livejournal.com/tag/unit%20testing

like image 138
Todd Ditchendorf Avatar answered Dec 21 '22 07:12

Todd Ditchendorf