Retrieve a test report summary for a pipeline
GET
/api/v4/projects/{id}/pipelines/{pipeline_id}/test_report_summary
Retrieves a test report summary for a pipeline.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
The project ID or URL-encoded path
Example
11 pipeline_id
required
integer
The pipeline ID
Example
18Responses
Section titled “ Responses ”OK
Media type application/json
object
total
object
test_suites
object
name
string
total_time
integer
total_count
integer
success_count
integer
failed_count
integer
skipped_count
integer
error_count
integer
suite_error
string
test_cases
Array<object>
object
status
string
name
string
classname
string
file
string
execution_time
integer
system_output
string
stack_trace
string
recent_failures
object
attachment_url
string
build_ids
Array<integer>
Example
{ "total": { "time": 0.42, "count": 2, "success": 2, "failed": 0, "skipped": 0, "error": 0, "suite_error": null }, "test_suites": { "name": "test", "total_time": 1904, "total_count": 3363, "success_count": 3351, "failed_count": 0, "skipped_count": 12, "error_count": 0, "suite_error": "JUnit XML parsing failed: 1:1: FATAL: Document is empty", "test_cases": [ { "status": "success", "name": "(No name)", "classname": "vulnerability_management_spec", "file": "./spec/test_spec.rb", "execution_time": 180, "system_output": "Failure/Error: is_expected.to eq(3)", "stack_trace": "Failure/Error: is_expected.to eq(3)", "recent_failures": { "count": 3, "base_branch": "develop" }, "attachment_url": "http://localhost/namespace1/project1/-/jobs/1/artifacts/file/some/path.png" } ], "build_ids": [ 66004 ] }}Bad Request
Unauthorized
Forbidden
Not found