Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
24a81b3d
Commit
24a81b3d
authored
May 20, 2019
by
Fabio Pitino
Committed by
Kushal Pandya
May 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display classname JUnit attribute in report modal
parent
712282cd
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
0 deletions
+17
-0
app/assets/javascripts/reports/store/state.js
app/assets/javascripts/reports/store/state.js
+5
-0
app/serializers/test_case_entity.rb
app/serializers/test_case_entity.rb
+1
-0
changelogs/unreleased/display-junit-classname-in-modal.yml
changelogs/unreleased/display-junit-classname-in-modal.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/fixtures/api/schemas/entities/test_case.json
spec/fixtures/api/schemas/entities/test_case.json
+1
-0
spec/serializers/test_case_entity_spec.rb
spec/serializers/test_case_entity_spec.rb
+2
-0
No files found.
app/assets/javascripts/reports/store/state.js
View file @
24a81b3d
...
@@ -40,6 +40,11 @@ export default () => ({
...
@@ -40,6 +40,11 @@ export default () => ({
text
:
s__
(
'
Reports|Class
'
),
text
:
s__
(
'
Reports|Class
'
),
type
:
fieldTypes
.
link
,
type
:
fieldTypes
.
link
,
},
},
classname
:
{
value
:
null
,
text
:
s__
(
'
Reports|Classname
'
),
type
:
fieldTypes
.
text
,
},
execution_time
:
{
execution_time
:
{
value
:
null
,
value
:
null
,
text
:
s__
(
'
Reports|Execution time
'
),
text
:
s__
(
'
Reports|Execution time
'
),
...
...
app/serializers/test_case_entity.rb
View file @
24a81b3d
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
class
TestCaseEntity
<
Grape
::
Entity
class
TestCaseEntity
<
Grape
::
Entity
expose
:status
expose
:status
expose
:name
expose
:name
expose
:classname
expose
:execution_time
expose
:execution_time
expose
:system_output
expose
:system_output
expose
:stack_trace
expose
:stack_trace
...
...
changelogs/unreleased/display-junit-classname-in-modal.yml
0 → 100644
View file @
24a81b3d
---
title
:
Display classname JUnit attribute in report modal
merge_request
:
28376
author
:
type
:
added
locale/gitlab.pot
View file @
24a81b3d
...
@@ -8068,6 +8068,9 @@ msgstr ""
...
@@ -8068,6 +8068,9 @@ msgstr ""
msgid "Reports|Class"
msgid "Reports|Class"
msgstr ""
msgstr ""
msgid "Reports|Classname"
msgstr ""
msgid "Reports|Execution time"
msgid "Reports|Execution time"
msgstr ""
msgstr ""
...
...
spec/fixtures/api/schemas/entities/test_case.json
View file @
24a81b3d
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"properties"
:
{
"properties"
:
{
"status"
:
{
"type"
:
"string"
},
"status"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
},
"classname"
:
{
"type"
:
"string"
},
"execution_time"
:
{
"type"
:
"float"
},
"execution_time"
:
{
"type"
:
"float"
},
"system_output"
:
{
"type"
:
[
"string"
,
"null"
]
},
"system_output"
:
{
"type"
:
[
"string"
,
"null"
]
},
"stack_trace"
:
{
"type"
:
[
"string"
,
"null"
]
}
"stack_trace"
:
{
"type"
:
[
"string"
,
"null"
]
}
...
...
spec/serializers/test_case_entity_spec.rb
View file @
24a81b3d
...
@@ -14,6 +14,7 @@ describe TestCaseEntity do
...
@@ -14,6 +14,7 @@ describe TestCaseEntity do
it
'contains correct test case details'
do
it
'contains correct test case details'
do
expect
(
subject
[
:status
]).
to
eq
(
'success'
)
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
[
: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
)
expect
(
subject
[
:execution_time
]).
to
eq
(
1.11
)
end
end
end
end
...
@@ -24,6 +25,7 @@ describe TestCaseEntity do
...
@@ -24,6 +25,7 @@ describe TestCaseEntity do
it
'contains correct test case details'
do
it
'contains correct test case details'
do
expect
(
subject
[
:status
]).
to
eq
(
'failed'
)
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
[
: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
)
expect
(
subject
[
:execution_time
]).
to
eq
(
2.22
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment