Questions tagged [gh-unit]

GHUnit is a test framework for Objective-C, Mac OS X 10.5 and above and iPhone 3.x and above. It can be used standalone or with other testing frameworks like SenTestingKit or GTM.

GHUnit is a test framework for Objective-C, Mac OS X 10.5 and above and iPhone 3.x and above. It can be used standalone or with other testing frameworks like SenTestingKit or GTM.

62 questions
0
votes
1 answer

GHUnit CLI Build: Availability.h errors

I am trying to do a command line build of a GHUnit target which builds fine inside Xcode. I am running the following command to build: GHUNIT_CLI=1 xcodebuild -target BasicBrowserUnitTest -configuration Debug -sdk iphonesimulator4.0 build It…
Wayne Hartman
  • 18,369
  • 7
  • 84
  • 116
0
votes
3 answers

JUnitXml format at GHUnit fraemwork

Does anybody know how to create xml report as result of tests using GHUnit? I do like that, but .xml file didn't appear... GHUNIT_AUTORUN=1 WRITE_JUNIT_XML=YES xcodebuild -project Tests.xcodeproj -sdk iphonesimulator4.3 -target Tests
user633101
  • 225
  • 1
  • 3
  • 8
0
votes
1 answer

GHUnit install, it provides a xcodeproj/ext LoadError

When running the ghunit install -n ProjectName I get the following error. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/ext…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
0
votes
0 answers

Xcode use GHUnit command line failed with exit code 139

I create a project with using GHUnit. However, when I use GHUnit make test command to execute, an error occurs like this: Running:…
0
votes
1 answer

How to use the Assert in a block?

I had questions about how to use the Assert in a block? For example: [someObject postRequestWithBlock:^(BOOL succeeded, NSError *error) { CFRunLoopRef runLoopRef = CFRunLoopGetCurrent(); CFRunLoopStop(runLoopRef); …
0
votes
1 answer

How can I test my class which uses UIWebView

I want to make test, but I do not know how to make it (I can use GHUnit). This is the class I want to test: Communicator.h @interface Communicator : NSObject -(void)loadURLWithString:(NSString*)urlString…
Feel Physics
  • 2,783
  • 4
  • 25
  • 38
0
votes
1 answer

Not able to run GHUnit test from command line

I am trying to run GHUnitTest cases from command line. Following all steps from Here My GHUnitTest target name is GHUnitTests. And I using following script on command line default: \# Set default make action here \# xcodebuild -target GHUnitTests…
rtk123
  • 143
  • 7
0
votes
1 answer

Unit Testing in xcode(Using GHUnit and OCMock)

In xcode,I am trying to do unit Testing using GHUnit and OCMock as described here : Unit Testing Xcode And Set Up methods as descibed here : GHUnitTestCase But got the error in this method (void)setUpClass { } when I initialize my ViewController…
Ponting
  • 2,248
  • 8
  • 33
  • 61
0
votes
1 answer

GHUnit as test bundle instead of separate target

Is it possible to create Test Bundle with OCUnit for unit tests, but instead OCUnit use GHUnit?
Piotr Wach
  • 913
  • 2
  • 9
  • 22
0
votes
1 answer

GHUnit with cocoa pods

I am managing project dependencies using cocoa pods. I added GHUnit target into my project and it is working fine. I have a problem in importing pods (cocoa pods) files into GHUnit target. For example, AFNetwork is added to my pod, how can I…
Clement Prem
  • 3,112
  • 2
  • 23
  • 43
0
votes
1 answer

compatibility between GHUnit and AFNetWorking

Hi, i try to create a unit test using the GHUnit, but i have an exception, i think its a problem of compatibility between the AFNetWorking and GHUnit exception 'GHTestFailureException', reason: 'failed' * First throw call stack:…
sharedMind
  • 11
  • 6
0
votes
2 answers

GHAssertEquals on an [NSArray count] verbosity

Can someone please tell me that this assert could be optimized? Unit testing in iOS is driving me up the wall. A simple assertion on the count of an NSArray should not be this verbose: GHAssertEquals([[NSNumber numberWithInt:[caseArray count]]…
mccrackend
  • 137
  • 8
0
votes
1 answer

How to write GHunit test cases for delegate Methods?

Can we write GHunit test for delegate methods ? I have a delegate method and I am trying to write GHUnit Test for that delegate methods.
Kashyap
  • 65
  • 1
  • 1
  • 7
0
votes
1 answer

iOS GHUnit and Core Data

ers, I recently integrated CoreData into my existing iOS application. I have previously existing tests written around some domain and network functionality; that now needs to be retrofitted to use CoreData (instead of storing in userDefaults). I…
kyleturner
  • 462
  • 1
  • 5
  • 14
0
votes
1 answer

GHUnit test with async HTTP get action

I want to test async HTTP get action. @interface Sender : NSObject { NSMutableData *buffer; NSString *_html } - (void)getHtml; @end @implementation Sender -…
Feel Physics
  • 2,783
  • 4
  • 25
  • 38