Class: TestRunner
- Inherits:
-
Contextual::Node
- Object
- Contextual::Node
- TestRunner
- Includes:
- Contextual::Parent
- Defined in:
- lib/contextual/test_runner.rb
Overview
TestRunner
The root node for any tests. Automatically runs once created. Do not include TestRunners inside other Groups.
Instance Attribute Summary
Attributes included from Contextual::Parent
Attributes inherited from Contextual::Node
Instance Method Summary collapse
-
#initialize(title, children = [], setup: nil, teardown: nil, options: nil, skip: false) ⇒ TestRunner
constructor
A new instance of TestRunner.
Methods included from Contextual::Parent
#assign_parent, #critical_inconclusive, #failures, #get_result, #neutrals, #report_children, #set_parent, #should_run_with_search_term_with_children, #successes, #total
Methods inherited from Contextual::Node
#get_result, #run, #run_setup, #run_teardown, #should_run_with_search_term
Constructor Details
#initialize(title, children = [], setup: nil, teardown: nil, options: nil, skip: false) ⇒ TestRunner
Returns a new instance of TestRunner.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/contextual/test_runner.rb', line 21 def initialize( title, children = [], setup: nil, teardown: nil, options: nil, skip: false ) super(title, setup: setup, teardown: teardown, options: , skip: skip) set_parent(children) # TODO: Fetch filter settings @filter_settings = FilterSettings.new run_all end |