Documentation

NSObject categories documentation

All the public Categories which extend NSObject class.

UKPrincipalClassNotifications

NSObject (UKPrincipalClassNotifications)

Test suite related notifications.

AuthorsGenerated by builder
Declared inUKRunner.h

Overview

These delegate methods can be implemented in the principal class. See the Notifications section in UKRunner class description.


Default

+ (void) willRunTestSuite

Tells the principal class that the test suite is about to start. The principal class comes from the test bundle Info.plist, -runTestsInBundle:principalClass: or -runTestsWithClassNames:principalClass: (if these last two methods are called directly without using ukrun).

You can implement this method to set up some global state (e.g. create a NSApp object with +[NSApplication sharedApplication] ) or test configuration.

See also +didRunTestSuite .

    + (void) didRunTestSuite

    Tells the principal class that the test suite is about to end.

    You can implement this method to reset some global state or test configuration, previously adjusted in +willRunTestSuite , and also to report additional test results (e.g. benchmark results). See also +willRunTestSuite .