Commit 8b33b301 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'display-junit-classname-in-modal' into 'master'

Display classname JUnit attribute in report modal

See merge request gitlab-org/gitlab-ce!28376
parents 712282cd 24a81b3d
......@@ -40,6 +40,11 @@ export default () => ({
text: s__('Reports|Class'),
type: fieldTypes.link,
},
classname: {
value: null,
text: s__('Reports|Classname'),
type: fieldTypes.text,
},
execution_time: {
value: null,
text: s__('Reports|Execution time'),
......
......@@ -3,6 +3,7 @@
class TestCaseEntity < Grape::Entity
expose :status
expose :name
expose :classname
expose :execution_time
expose :system_output
expose :stack_trace
......
---
title: Display classname JUnit attribute in report modal
merge_request: 28376
author:
type: added
......@@ -8068,6 +8068,9 @@ msgstr ""
msgid "Reports|Class"
msgstr ""
msgid "Reports|Classname"
msgstr ""
msgid "Reports|Execution time"
msgstr ""
......
......@@ -7,6 +7,7 @@
"properties": {
"status": { "type": "string" },
"name": { "type": "string" },
"classname": { "type": "string" },
"execution_time": { "type": "float" },
"system_output": { "type": ["string", "null"] },
"stack_trace": { "type": ["string", "null"] }
......
......@@ -14,6 +14,7 @@ describe TestCaseEntity do
it 'contains correct test case details' do
expect(subject[:status]).to eq('success')
expect(subject[:name]).to eq('Test#sum when a is 1 and b is 3 returns summary')
expect(subject[:classname]).to eq('spec.test_spec')
expect(subject[:execution_time]).to eq(1.11)
end
end
......@@ -24,6 +25,7 @@ describe TestCaseEntity do
it 'contains correct test case details' do
expect(subject[:status]).to eq('failed')
expect(subject[:name]).to eq('Test#sum when a is 2 and b is 2 returns summary')
expect(subject[:classname]).to eq('spec.test_spec')
expect(subject[:execution_time]).to eq(2.22)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment