GHTest Protocol Reference
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
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