GHTestViewModel Class Reference
| Inherits from | NSObject |
| Conforms to | GHTestNodeDelegate |
| Declared in | GHTestViewModel.h GHTestViewModel.m |
Tasks
-
– initWithIdentifier:suite:Create view model with root test group node.
-
– nameName of test suite.
-
– statusString:Status description.
-
– findTestNodeForTest:Find the test node from the test.
-
– findFailureFind the first failure.
-
– findFailureFromNode:Find the next failure starting from node.
-
– registerNode:Register node, so that we can do a lookup later. See findTestNodeForTest:.
-
– numberOfGroupsReturns the number of test groups.
-
– numberOfTestsInGroup:Returns the number of tests in group.
-
– indexPathToTest:Search for path to test.
-
– loadDefaultsLoad defaults (user settings saved with saveDefaults).
-
– saveDefaultsSave defaults (user settings to be loaded with loadDefaults).
-
– run:inParallel:options:Run with current test suite.
-
– cancelCancel test run.
-
– isRunningCheck if running.
Instance Methods
findFailure
Find the first failure.
- (GHTestNode *)findFailureReturn Value
The first failure
Declared In
GHTestViewModel.hfindFailureFromNode:
Find the next failure starting from node.
- (GHTestNode *)findFailureFromNode:(GHTestNode *)nodeParameters
- node
Node to start from
Declared In
GHTestViewModel.hfindTestNodeForTest:
Find the test node from the test.
- (GHTestNode *)findTestNodeForTest:(id<GHTest>)testParameters
- test
Find test
Declared In
GHTestViewModel.hindexPathToTest:
Search for path to test.
- (NSIndexPath *)indexPathToTest:(id<GHTest>)testParameters
- test
Test
Return Value
Index path
Declared In
GHTestViewModel.hinitWithIdentifier:suite:
Create view model with root test group node.
- (id)initWithIdentifier:(NSString *)identifier suite:(GHTestSuite *)suiteParameters
- identifier
Unique identifier for test model (used to load defaults)
- suite
Suite
Declared In
GHTestViewModel.hisRunning
Check if running.
- (BOOL)isRunningReturn Value
YES if running.
Declared In
GHTestViewModel.hloadDefaults
Load defaults (user settings saved with saveDefaults).
- (void)loadDefaultsDeclared In
GHTestViewModel.hname
Name of test suite.
- (NSString *)nameReturn Value
Name of test suite.
Declared In
GHTestViewModel.hnumberOfGroups
Returns the number of test groups.
- (NSInteger)numberOfGroupsReturn Value
Returns the number of test groups.
Declared In
GHTestViewModel.hnumberOfTestsInGroup:
Returns the number of tests in group.
- (NSInteger)numberOfTestsInGroup:(NSInteger)groupParameters
- group
Group number
Return Value
The number of tests in group.
Declared In
GHTestViewModel.hregisterNode:
Register node, so that we can do a lookup later. See findTestNodeForTest:.
- (void)registerNode:(GHTestNode *)nodeParameters
- node
Node to register
Declared In
GHTestViewModel.hrun:inParallel:options:
Run with current test suite.
- (void)run:(id<GHTestRunnerDelegate>)delegate inParallel:(BOOL)inParallel options:(GHTestOptions)optionsParameters
- delegate
Callback
- inParallel
If YES, will run tests in operation queue
- options
Options
Declared In
GHTestViewModel.hsaveDefaults
Save defaults (user settings to be loaded with loadDefaults).
- (void)saveDefaultsDeclared In
GHTestViewModel.h