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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a57fd941
Commit
a57fd941
authored
Sep 28, 2020
by
drew cimino
Committed by
Jan Provaznik
Oct 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose file path from XML Test Report artifact
parent
2e1d2227
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
app/serializers/test_case_entity.rb
app/serializers/test_case_entity.rb
+1
-0
changelogs/unreleased/expose-junit-spec-file-path.yml
changelogs/unreleased/expose-junit-spec-file-path.yml
+5
-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/serializers/test_case_entity.rb
View file @
a57fd941
...
...
@@ -6,6 +6,7 @@ class TestCaseEntity < Grape::Entity
expose
:status
expose
:name
expose
:classname
expose
:file
expose
:execution_time
expose
:system_output
expose
:stack_trace
...
...
changelogs/unreleased/expose-junit-spec-file-path.yml
0 → 100644
View file @
a57fd941
---
title
:
Expose file path from XML Test Report artifact
merge_request
:
43594
author
:
type
:
changed
spec/fixtures/api/schemas/entities/test_case.json
View file @
a57fd941
...
...
@@ -8,6 +8,7 @@
"status"
:
{
"type"
:
"string"
},
"name"
:
{
"type"
:
"string"
},
"classname"
:
{
"type"
:
"string"
},
"file"
:
{
"type"
:
[
"string"
,
"null"
]
},
"execution_time"
:
{
"type"
:
"float"
},
"system_output"
:
{
"type"
:
[
"string"
,
"null"
]
},
"stack_trace"
:
{
"type"
:
[
"string"
,
"null"
]
},
...
...
spec/serializers/test_case_entity_spec.rb
View file @
a57fd941
...
...
@@ -19,6 +19,7 @@ RSpec.describe TestCaseEntity 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
[
:file
]).
to
eq
(
'./spec/test_spec.rb'
)
expect
(
subject
[
:execution_time
]).
to
eq
(
1.11
)
end
end
...
...
@@ -30,6 +31,7 @@ RSpec.describe TestCaseEntity do
expect
(
subject
[
:status
]).
to
eq
(
'failed'
)
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
[
:file
]).
to
eq
(
'./spec/test_spec.rb'
)
expect
(
subject
[
:execution_time
]).
to
eq
(
2.22
)
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