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

  •   identifier

    Unique identifier for test.

    property required method
  •   name

    Name (readable) for test.

    property required method
  •   interval

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

    property required method
  •   status

    Test status.

    property required method
  •   stats

    Test stats.

    property required method
  •   exception

    Exception that occurred.

    property required method
  •   disabled

    Whether test is disabled.

    property required method
  •   hidden

    Whether test is hidden.

    property required method
  •   delegate

    Delegate for test.

    property required method
  • – run:

    Run the test.

    required method
  • – log

    Messages logged during this test run

    required method
  • – reset

    Reset the test.

    required method
  • – cancel

    Cancel the test.

    required method
  • – disabledCount

    The number of disabled tests

    required method

Properties

delegate

Delegate for test.

@property (assign, nonatomic) id<> 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