Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build_report_results.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0685c0e55548c4fef8eb0eedb77d25cd1b5a6233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true

FactoryBot.define do
  factory :ci_build_report_result, class: 'Ci::BuildReportResult' do
    build factory: :ci_build
    project factory: :project
    data do
      {
        tests: {
          name: "rspec",
          duration: 0.42,
          failed: 0,
          errored: 2,
          skipped: 0,
          success: 0
        }
      }
    end

    trait :with_junit_success do
      data do
        {
          tests: {
            name: "rspec",
            duration: 0.42,
            failed: 0,
            errored: 0,
            skipped: 0,
            success: 2
          }
        }
      end
    end
  end
end