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
43
votes
4 answers

Unit testing private method - objective C

I use GHUnit. I want to unit test private methods and don't know how to test them. I found a lot of answers on why to or why not to test private methods. But did not find on how to test them. I would not like to discuss whether I should test…
Geek
  • 8,280
  • 17
  • 73
  • 137
11
votes
4 answers

Why does a false assertion in async test in GHUnit crash the app instead of just failing the test?

This question has very few views and no answers yet. If you have a suggestion what to change about this question to get more eyeballs, I'd be happy to hear them. Cheers! I'm using GHAsyncTestCase to test a custom NSOperation of mine. I'm setting the…
epologee
  • 11,229
  • 11
  • 68
  • 104
8
votes
2 answers

architecture issue on compiling unit test using GHUnit

Am using Xcode 4.5. Recently i have download GHunit framework and setup it by following link. On compiling the target, am getting the error mentioned below. need your valuable suggestion. Undefined symbols for architecture i386: …
yokks
  • 5,683
  • 9
  • 41
  • 48
7
votes
2 answers

ARC, bridged cast and GHUnit

I'm followinng tutorial from http://gabriel.github.com/gh-unit/docs/appledoc_include/guide_testing.html. The problem is that my project uses ARC and GHUnit doesn't. I managed previous errors, but now i should do bridged cast, that i've never used,…
Nat
  • 12,032
  • 9
  • 56
  • 103
5
votes
1 answer

What does "Timed out trying to acquire capabilities data" mean coming from an iOS app?

This is a pretty silly situation: I'm using GHUnit to test an app and I'm running those tests outside the simulator according to the instructions. Everything was great for a long time, but we're getting in to a situation now where I'm getting this…
Jim Puls
  • 79,175
  • 10
  • 73
  • 78
5
votes
2 answers

GHUnit Linker Error with App Classes

I'm trying to run a GHUnit test to just test that a setter actually works for a NSManagedObject object in my app. My app is called Machine and my GHUnit target is called Tests. I've added Machine as a dependency to the Tests target. My object in…
5
votes
2 answers

How start GHUnit tests without tapping Run button?

I use GHUnit framework for testing static library. At this moment I need tap the button Run to start my tests. But I would like to start tests when application launched because I need teamcity launch my testApp. So how can I modified standart UI and…
user633101
  • 225
  • 1
  • 3
  • 8
5
votes
6 answers

OCUnit testing an embedded framework

UPDATE: I ended up giving up and added GHUnit to my project instead. I got up and running with GHUnit in a matter of minutes. UPDATE: You can download the Xcode project here: http://github.com/d11wtq/Cioccolata I've added a Unit Test target to my…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
5
votes
3 answers

GH-Unit for unit testing Objective-C code, why am I getting linking errors?

I'm trying to dive into the quite frankly terrible world of unit testing using Xcode (such a convoluted process it seems.) Basically I have this test class, attempting to test my Show.h class #import #import "Show.h" @interface…
djhworld
  • 6,726
  • 4
  • 30
  • 44
4
votes
1 answer

Getting LLVM error when building to device but not in simulator

When I attempt to build my test target to either my iPad1 (4.3.5) or iPhone4 (4.3.5) I'm getting the following error from Xcode 4 (Build 4A304a): Internal compiler error: tree check: expected tree that contains 'decl with visibility' structure, have…
ShogoDodo
  • 63
  • 2
4
votes
2 answers

Problem with GHUnit + Hudson/Jenkins in Xcode 4

I've followed this very good tutorial on how to configure GHUnit in Xcode 4 and integrate it with Hudson/Jenkins. Everything seems to work fine when all test cases pass, but when a test case fails, the Hudson/Jenkins doesn't create the "test…
Vic
  • 2,878
  • 4
  • 36
  • 55
4
votes
1 answer

why gh-unit is better than SenTestCase ( in Xcode4 )?

This post "Unit Testing in Xcode 4" talks about unit test, let me know the best solution "gh unit" , but I know that xcode4 just provides SenTestCase , so question here to know more reasons why you choose gh-unit ? And now xcode4 provide native unit…
Forrest
  • 122,703
  • 20
  • 73
  • 107
3
votes
1 answer

Why does XCTest run tests twice on 64-bit architectures?

I recently setup a unit test suite using the XCTest framework with XCode bots and a dedicated OS X server. I'm noticing that when I run the tests targeting 64-bit architecture (in this case, the iPhone simulator on x86_64), the tests run twice. Why…
user2393462435
  • 2,652
  • 5
  • 37
  • 45
3
votes
4 answers

GH-Unit and Objective C++

I have an iPhone project that uses GHUnit to conduct unit testing. Recently, I've needed to implement complex numbers and overload some operators to ease the calculation of FFTs. The goal here was to create a clean way to perform an FFT without…
Sam
  • 386
  • 5
  • 15
3
votes
1 answer

GHUnit error file _OBJC_CLASS_$_SenTestCase", referenced

I'm using GHUnit in my project but when i try to run the app it gives errors Ld /Users/goldfire/Library/Developer/Xcode/DerivedData/WhatsMySpeed-amkgqintxyhelabqvrpouivmdglf/Build/Products/Debug-iphonesimulator/GHUnitTests.app/GHUnitTests normal…
Ziad Tamim
  • 350
  • 6
  • 17
1
2 3 4 5