Class: QAT::Formatter::Dashboard
- Inherits:
-
Object
- Object
- QAT::Formatter::Dashboard
- Includes:
- Cucumber::Core::Gherkin::Writer, Cucumber::Formatter::Io, Cucumber::Gherkin::Formatter::Escaping, FileUtils, Helper, Loggable, Logger
- Defined in:
- lib/qat/formatter/dashboard.rb
Overview
Formatter to send error information to a Dashboard server. Output should be configured in the logger file.
Instance Method Summary collapse
-
#initialize(config) ⇒ Dashboard
constructor
private
A new instance of Dashboard.
Methods included from Helper
#assign_print_feature, #on_test_case_finished, #on_test_case_started, #on_test_run_finished, #on_test_step_finished, #on_test_step_started, #print_assign_step, #print_scenario_results, #print_scenario_start
Methods included from UtilityFuction
#background, #calculate_row_number, #create_feature_hash, #features?, #get_example_values, #get_lines_from_scenario
Methods included from Builder
#add_values_to_examples, #build, #create_id_from_scenario_source, #feature, #get_scenario_tags, #scenario
Methods included from Loggable
#begin_test_step, #check_outputter, #ensure_outputter
Methods included from Loggable::Mdc
#mdc_add_status_failed!, #mdc_add_step!, #mdc_after_feature!, #mdc_before_feature!, #mdc_before_scenario!, #mdc_remove_step!, #mdc_reset_scenario!
Constructor Details
#initialize(config) ⇒ Dashboard
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Dashboard.
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/qat/formatter/dashboard.rb', line 25 def initialize(config) @config = config @io = ensure_io(config.out_stream, config.error_stream) ensure_outputter config.out_stream @ast_lookup = ::Cucumber::Formatter::AstLookup.new(config) @feature_hashes = [] config.on_event :test_case_started, &method(:on_test_case_started) config.on_event :test_case_finished, &method(:on_test_case_finished) config.on_event :test_step_started, &method(:on_test_step_started) config.on_event :test_step_finished, &method(:on_test_step_finished) config.on_event :test_run_finished, &method(:on_test_run_finished) end |