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
e5cc9a4e
Commit
e5cc9a4e
authored
Jan 25, 2022
by
Andrejs Cunskis
Committed by
Ramya Authappan
Jan 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Export testcase as a tag
parent
7d45e44f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
qa/qa/support/formatters/test_stats_formatter.rb
qa/qa/support/formatters/test_stats_formatter.rb
+3
-3
qa/spec/support/formatters/test_stats_formatter_spec.rb
qa/spec/support/formatters/test_stats_formatter_spec.rb
+3
-3
No files found.
qa/qa/support/formatters/test_stats_formatter.rb
View file @
e5cc9a4e
...
...
@@ -73,7 +73,8 @@ module QA
job_name:
job_name
,
merge_request:
merge_request
,
run_type:
env
(
'QA_RUN_TYPE'
)
||
run_type
,
stage:
devops_stage
(
file_path
)
stage:
devops_stage
(
file_path
),
testcase:
example
.
metadata
[
:testcase
]
},
fields:
{
id:
example
.
id
,
...
...
@@ -84,8 +85,7 @@ module QA
retry_attempts:
example
.
metadata
[
:retry_attempts
]
||
0
,
job_url:
QA
::
Runtime
::
Env
.
ci_job_url
,
pipeline_url:
env
(
'CI_PIPELINE_URL'
),
pipeline_id:
env
(
'CI_PIPELINE_ID'
),
testcase:
example
.
metadata
[
:testcase
]
pipeline_id:
env
(
'CI_PIPELINE_ID'
)
}
}
rescue
StandardError
=>
e
...
...
qa/spec/support/formatters/test_stats_formatter_spec.rb
View file @
e5cc9a4e
...
...
@@ -45,7 +45,8 @@ describe QA::Support::Formatters::TestStatsFormatter do
job_name:
"test-job"
,
merge_request:
"false"
,
run_type:
run_type
,
stage:
stage
.
match
(
%r{
\d
{1,2}_(
\w
+)}
).
captures
.
first
stage:
stage
.
match
(
%r{
\d
{1,2}_(
\w
+)}
).
captures
.
first
,
testcase:
'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/1234'
},
fields:
{
id:
'./spec/support/formatters/test_stats_formatter_spec.rb[1:1]'
,
...
...
@@ -56,8 +57,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
retry_attempts:
0
,
job_url:
ci_job_url
,
pipeline_url:
ci_pipeline_url
,
pipeline_id:
ci_pipeline_id
,
testcase:
'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/1234'
pipeline_id:
ci_pipeline_id
}
}
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