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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-08 12:06:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-08 12:06:09 +0300
commit77a7772c3bdb03d92cbc154f6b1a762953cc7c19 (patch)
treeb841c2233afb01d1b6cc7dd4023f2b677ec19eb3 /app/serializers/test_suite_entity.rb
parentf7234a0894db99c7ade3cf29c1b467aa4807cc41 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers/test_suite_entity.rb')
-rw-r--r--app/serializers/test_suite_entity.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/serializers/test_suite_entity.rb b/app/serializers/test_suite_entity.rb
new file mode 100644
index 00000000000..0f88a496c77
--- /dev/null
+++ b/app/serializers/test_suite_entity.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class TestSuiteEntity < Grape::Entity
+ expose :name
+ expose :total_time
+ expose :total_count
+
+ expose :success_count
+ expose :failed_count
+ expose :skipped_count
+ expose :error_count
+
+ expose :test_cases, using: TestCaseEntity do |test_suite|
+ test_suite.test_cases.values.flat_map(&:values)
+ end
+end