diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/factories/ci/build_report_results.rb | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) | |
download | gitlab-ce-8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781.tar.gz |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/factories/ci/build_report_results.rb')
-rw-r--r-- | spec/factories/ci/build_report_results.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/factories/ci/build_report_results.rb b/spec/factories/ci/build_report_results.rb new file mode 100644 index 00000000000..0685c0e5554 --- /dev/null +++ b/spec/factories/ci/build_report_results.rb @@ -0,0 +1,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 |