Sha256: 16f5f8f8f178ac66d4f5d11ead75f3fbd638fabf8f9e24ff54ddf5996cde665d
Contents?: true
Size: 1.98 KB
Versions: 24
Compression:
Stored size: 1.98 KB
Contents
# frozen_string_literal: true # Holds test run summary data providing methods for accessing each data point. module QaServer class ScenarioRunSummary # @return [Integer] the id of the scenario run being summarized attr_reader :run_id # @return [Date] the date time stamp of the scenario run being summarized attr_reader :run_dt_stamp # @return [Integer] number of all authorities in the run attr_reader :authority_count # @return [Integer] number of authorities in the run that had at least one failing test attr_reader :failing_authority_count # @return [Integer] number of scenarios that passed during this run attr_reader :passing_scenario_count # @return [Integer] name of the subauthority the scenario runs against attr_reader :failing_scenario_count # @return [Integer] total number of scenarios in this run attr_reader :total_scenario_count # @param run_id [Integer] the id of the scenario run being summarized # @param run_dt_stamp [Date] the date time stamp of the scenario run being summarized # @param authority_count [Integer] number of all authorities in the run # @param failing_authority_count [Integer] number of authorities in the run that had failing tests # @param passing_scenario_count [Integer] number of scenarios that passed during this run # @param failing_scenario_count [Integer] number of scenarios that failed during this run # rubocop:disable Metrics/ParameterLists def initialize(run_id:, run_dt_stamp:, authority_count:, failing_authority_count:, passing_scenario_count:, failing_scenario_count:) @run_id = run_id @run_dt_stamp = run_dt_stamp @authority_count = authority_count @failing_authority_count = failing_authority_count @passing_scenario_count = passing_scenario_count @failing_scenario_count = failing_scenario_count @total_scenario_count = failing_scenario_count + passing_scenario_count end # rubocop:enable Metrics/ParameterLists end end
Version data entries
24 entries across 24 versions & 1 rubygems