Skip to content

Add test report summary to graphql

Scott Hampton requested to merge be-test-report-summary-graphql into master

What does this MR do?

Adds the pipeline test report summary to GraphQL. You can access it with following query:

query getPipelineTestReportSummary($projectPath: ID!, $pipelineIid: ID!) {
  project(fullPath: $projectPath) {
    pipeline(iid: $pipelineIid) {
      id
      iid
      testReportSummary {
        total {
          time
          count
          success
          failed
          skipped
          error
          suiteError
        }
        testSuites {
          nodes {
            name
            buildIds
            totalTime
            totalCount
            successCount
            failedCount
            skippedCount
            errorCount
            suiteError
          }
        }
      }
    }
  }
}

Screenshots (strongly suggested)

Screen_Cast_2021-04-07_at_11.55.25_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Scott Hampton

Merge request reports

Loading