Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

GHUnit test app freezes without errors or crashes #46

Closed
evanlooij opened this Issue · 2 comments

3 participants

Elise van Looij Matthew Flint Felix Schulze
Elise van Looij

I'm running GHUnit 0.4.28 in Xcode 4.0.2 Build 4A2002a. The test compiles and runs fine, but when I press the 'Run' button, it freezes. Just freezes, no errors in the Consoles, no crash, nothing. The status line reads: "Running 0.002s (0.000s in test time) 0/1 (0 failures)" and that is where it stays (I have a screenshot, but it seems as though I can't upload here).

The test I'm running is the following:

  • (void)testManagedObjectModelWithName { NSError *error = nil; NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"BookManager" withExtension:@"momd"]; GHAssertTrue([modelURL checkResourceIsReachableAndReturnError:&error], @"Expected valid model at url %@", [modelURL absoluteString]); }
Matthew Flint

I'm seeing a similar thing too, with the MacOS test runner. I'm using the GHUnit-0.4.30.zip download.

This happens only when I run a single test (if I run the whole suite, then all tests pass)

Strangely, if I add a new dummy test method to the same class:

-(void)testMeep {}

... and then run the problem test (only the problem test - not the new testMeep) then it's OK.

Why would adding a dummy test method cause a test to start working? And why would removing that dummy method cause another test to freeze?

Matthew Flint

See issue 64 for a patch which works for me.

#64

Felix Schulze x2on closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.