GHTest Class Reference
| Inherits from | NSObject |
| Conforms to | GHTest GHTestCaseLogWriter |
| Declared in | GHTest.h GHTest.m |
Overview
Default test implementation with a target/selector pair.
- Tests a target and selector
- Notifies a test delegate
- Keeps track of status, running time and failures
- Stores any test specific logging
Tasks
Other Methods
-
logMessages logged during this test run
property -
– initWithIdentifier:name:Create test with identifier, name.
-
– initWithTarget:selector:Create test with target/selector.
-
+ testWithTarget:selector:Create autoreleased test with target/selector.
Other Methods
-
– statsTest stats.
-
– resetReset the test.
-
– cancelCancel the test.
-
– setDisabled:Whether test is disabled.
-
– setHidden:Whether test is hidden.
-
– disabledCountThe number of disabled tests
-
– setException:Exception that occurred.
-
– run:Run the test.
-
– log:testCase:Log message.
JUnitXML Methods
-
– JUnitXMLReturn test results in JUnit XML format for external parsing use (such as a Continuous Integration system like Jenkins).
Instance Methods
JUnitXML
Return test results in JUnit XML format for external parsing use (such as a Continuous Integration system like Jenkins).
- (NSString *)JUnitXMLDeclared In
GHTest+JUnitXML.hdisabledCount
The number of disabled tests
- (NSInteger)disabledCountReturn Value
The number of disabled tests
Declared In
GHTest.hinitWithIdentifier:name:
Create test with identifier, name.
- (id)initWithIdentifier:(NSString *)identifier name:(NSString *)nameParameters
- identifier
Unique identifier
- name
Name
Declared In
GHTest.hinitWithTarget:selector:
Create test with target/selector.
- (id)initWithTarget:(id)target selector:(SEL)selectorParameters
- target
Target (usually a test case)
- selector
Selector (usually a test method)
Declared In
GHTest.hlog:testCase:
Log message.
- (void)log:(NSString *)message testCase:(id)testCaseParameters
- message
Message
- testCase
Test case
Declared In
GHTest.hrun:
Run the test.
- (void)run:(GHTestOptions)optionsParameters
- options
Options
Declared In
GHTest.h