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
-
identifierUnique identifier for test.
property required method -
nameName (readable) for test.
property required method -
intervalHow long the test took to run. Defaults to -1, if not run.
property required method -
statusTest status.
property required method -
statsTest stats.
property required method -
exceptionException that occurred.
property required method -
disabledWhether test is disabled.
property required method -
hiddenWhether test is hidden.
property required method -
delegateDelegate for test.
property required method -
– run:Run the test.
required method -
– logMessages logged during this test run
required method -
– resetReset the test.
required method -
– cancelCancel the test.
required method -
– disabledCountThe number of disabled tests
required method
Properties
disabled
Whether test is disabled.
@property (assign, nonatomic, getter=isDisabled) BOOL disabledDeclared In
GHTest.hexception
Exception that occurred.
@property (retain, nonatomic) NSException *exceptionDeclared In
GHTest.hhidden
Whether test is hidden.
@property (assign, nonatomic, getter=isHidden) BOOL hiddenDeclared In
GHTest.hidentifier
Unique identifier for test.
@property (readonly, nonatomic) NSString *identifierDeclared In
GHTest.h