Conforms to NSCoding
NSCopying
NSObject
Declared in GHTest.h

Overview

The base interface for a runnable test.

A runnable with a unique identifier, display name, stats, timer, delegate, log and error handling.

Tasks

Properties

delegate

Delegate for test.

@property (assign, nonatomic) id<GHTestDelegate> delegate

Declared In

GHTest.h

disabled

Whether test is disabled.

@property (assign, nonatomic, getter=isDisabled) BOOL disabled

Declared In

GHTest.h

exception

Exception that occurred.

@property (retain, nonatomic) NSException *exception

Declared In

GHTest.h

hidden

Whether test is hidden.

@property (assign, nonatomic, getter=isHidden) BOOL hidden

Declared In

GHTest.h

identifier

Unique identifier for test.

@property (readonly, nonatomic) NSString *identifier

Declared In

GHTest.h

interval

How long the test took to run. Defaults to -1, if not run.

@property (assign, nonatomic) NSTimeInterval interval

Declared In

GHTest.h

name

Name (readable) for test.

@property (readonly, nonatomic) NSString *name

Declared In

GHTest.h

stats

Test stats.

@property (readonly, nonatomic) GHTestStats stats

Declared In

GHTest.h

status

Test status.

@property (assign, nonatomic) GHTestStatus status

Declared In

GHTest.h

Instance Methods

cancel

Cancel the test.

- (void)cancel

Declared In

GHTest.h

disabledCount

The number of disabled tests

- (NSInteger)disabledCount

Return Value

The number of disabled tests

Declared In

GHTest.h

log

Messages logged during this test run

- (NSArray *)log

Return Value

Messages logged during this test run

Declared In

GHTest.h

reset

Reset the test.

- (void)reset

Declared In

GHTest.h

run:

Run the test.

- (void)run:(GHTestOptions)options

Parameters

options

Options

Declared In

GHTest.h