test_insights

Get a single test stat as a time series

Changed on

Return one test stat with a window summary value and a per-day value_over_time series of failed executions.

get/ci/{owner}/repositories/{repository}/tests/stats/{stat}

Request

Path parameters

stat'total_tests' | 'healthy_tests' | 'broken_tests' | 'flaky_tests' | 'failed_executions' | 'median_test_run_duration' required
repositorystring required

The name of the repository

ownerstring required

The owner of the repository

Query parameters

test_namestring[] nullable

The test name to filter on

test_name_excludestring[] nullable

The test name to exclude

job_namestring[] nullable

The job name to filter on

job_name_excludestring[] nullable

The job name to exclude

pipeline_namestring[] nullable

The pipeline name to filter on

pipeline_name_excludestring[] nullable

The pipeline name to exclude

failed_executions_impactstring[] nullable

The failed executions impact to filter on

failed_executions_impact_excludestring[] nullable

The failed executions impact to exclude

branch_namestring nullable

Read the tests of this branch, one the repository tracks its tests on. Defaults to the repository's default branch, also when the repository does not track it.

Response

Successful Response

stat'total_tests' | 'healthy_tests' | 'broken_tests' | 'flaky_tests' | 'failed_executions' | 'median_test_run_duration' required
valueinteger required

Changes

    • warning

      added the new CONFIGURATION_MIGRATION_CHOICES_UNAVAILABLE enum value to the response property for the response status

    • warning

      added the new MERGE_GATE_NOT_AVAILABLE enum value to the response property for the response status

    • warning

      added the new MERGE_GATE_UNREADABLE enum value to the response property for the response status

    • warning

      added the new CI_ID_TOKEN_NO_MATCHING_TRUST_POLICY enum value to the response property for the response status

    • warning

      added the new CI_ID_TOKEN_NO_TRUST_POLICY enum value to the response property for the response status

    • warning

      added the new PIPELINE_SECRETS_KEY_REPORTED enum value to the response property for the response status