2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
class TestReportsComparerEntity < Grape::Entity
|
|
|
|
expose :total_status, as: :status
|
|
|
|
|
|
|
|
expose :summary do
|
|
|
|
expose :total_count, as: :total
|
|
|
|
expose :resolved_count, as: :resolved
|
|
|
|
expose :failed_count, as: :failed
|
2020-03-09 13:42:32 +05:30
|
|
|
expose :error_count, as: :errored
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
expose :suite_comparers, as: :suites, using: TestSuiteComparerEntity
|
|
|
|
end
|