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

Version Path
qa_server-8.0.1 app/models/qa_server/scenario_run_summary.rb
qa_server-7.9.2 app/models/qa_server/scenario_run_summary.rb
qa_server-7.9.1 app/models/qa_server/scenario_run_summary.rb
qa_server-7.9.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.8.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.7.1 app/models/qa_server/scenario_run_summary.rb
qa_server-7.7.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.6.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.5.1 app/models/qa_server/scenario_run_summary.rb
qa_server-7.5.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.4.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.3.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.2.1 app/models/qa_server/scenario_run_summary.rb
qa_server-7.2.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.1.3 app/models/qa_server/scenario_run_summary.rb
qa_server-7.1.2 app/models/qa_server/scenario_run_summary.rb
qa_server-7.1.1 app/models/qa_server/scenario_run_summary.rb
qa_server-7.1.0 app/models/qa_server/scenario_run_summary.rb
qa_server-7.0.0 app/models/qa_server/scenario_run_summary.rb
qa_server-6.2.0 app/models/qa_server/scenario_run_summary.rb