Class: Ruptr::TestSuite

Inherits:
TestGroup show all
Defined in:
lib/ruptr/suite.rb,
lib/ruptr/autorun.rb

Constant Summary

Constants inherited from TestElement

Ruptr::TestElement::DEFAULT_TAGS

Instance Attribute Summary

Attributes inherited from TestElement

#block, #identifier, #label, #parent, #tags

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TestGroup

#add_test_case, #add_test_element, #add_test_subgroup, #clear_test_cases, #clear_test_subgroups, #count_test_cases, #count_test_elements, #count_test_groups, #count_test_subgroups, #each_test_case, #each_test_case_recursive, #each_test_element, #each_test_element_recursive, #each_test_group_recursive, #each_test_subgroup, #each_test_subgroup_recursive, #empty?, #filter_recursive, #filter_recursive!, #filter_test_cases_recursive, #freeze, #initialize, #initialize_dup, #test_group?, #wrap_context, #wrap_result, #wrappable?

Methods inherited from TestElement

#block?, #description, #each_parent_and_self, #initialize, #initialize_dup, #make_result, #orphan?, #orphanize!, #path_identifiers, #path_labels, #reparent!, #test_case?, #test_group?, #to_s

Constructor Details

This class inherits a constructor from Ruptr::TestGroup

Class Method Details

.global_autorun_test_suiteObject



26
# File 'lib/ruptr/autorun.rb', line 26

def self.global_autorun_test_suite = @global_autorun_test_suite ||= TestSuite.new

Instance Method Details

#run_on_exit!Object



28
29
30
31
32
33
34
35
36
# File 'lib/ruptr/autorun.rb', line 28

def run_on_exit!
  return if @run_on_exit
  require_relative 'runner'
  require_relative 'formatter'
  Ruptr.at_normal_exit do
    Runner.from_env.run_sink(self, Formatter.from_env($stdout))
  end
  @run_on_exit = true
end