Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode tests hang

Tags:

xcode

ios

I've added a test target to my ios project, leaving for the time being the pre filled test code in the newly created file which has a few methods - set up, tear down and a failing test called testExample. My normal application target builds and runs fine.

When I run the tests, they also build fine with no warnings however the test never fails as it should. In the progress bar at the top of the IDE it has a spinning icon and the words "Indexing" and "Paused".

I've checked for breakpoints - there are none.

In the log navigator I can see my current test build running however again with a spinning icon. Really not sure why its paused.

Using Xcode 5.0.2, XCTest, iPad iOS Simulator.

like image 635
teddy777 Avatar asked Mar 11 '14 13:03

teddy777


People also ask

What is test inheritance?

Inheritance definitionInheritance in OOP is achieved when one object acquires (inherits) the properties and the behaviors of the parent object. This means that the protected and public members of the parent class can be reused in the derived class, without having to define them all over again.

Is dotCover included with ReSharper?

dotCover comes bundled with a unit test runner that it shares with another JetBrains tool for . NET developers, ReSharper.

How do I run unit tests with ReSharper?

Ctrl+U R / Debug Unit Tests. Ctrl+U D on the toolbar. To run all tests in the session, click Run Current Session. Ctrl+U Y on the toolbar or alternatively, choose ReSharper | Unit Tests | Run Current Session from the main menu.


1 Answers

I also had a hang on test launch which I resolved by resetting the simulator.

like image 70
kball Avatar answered Nov 15 '22 20:11

kball