builds

Get the test results of a build

Changed on

Get the test suites and test cases a finished build reported, with their status, duration and failure message. Requires a plan that includes test reports. With any filter or limit, test suites without matching test cases are left out; the counts of a test suite always cover all of its test cases.

get/apps/{app-slug}/builds/{build-slug}/test-results

Request

  • Base URL
    https://api.bitrise.io/v0.1
  • Auth
    API key in header Authorization

Path parameters

app-slugstring required

App slug

build-slugstring required

Build slug

Query parameters

statusstring[]

Test case statuses to keep, e.g. status=failed&status=error for every test that needs fixing (a comma-separated list also works). A test that failed and then passed on a retry has status passed and flaky true.

suitestring

Only return test cases under the test suite with this exact name, at any nesting level.

class_namestring

Only return test cases with this exact class name.

flakyboolean

Only return test cases that are (true) or are not (false) flaky in this build. A test case is flaky when its runs ended with different statuses.

sort_by'duration' | 'name' | 'status'

Sort the test cases within each test suite. Ascending status lists error, failed, skipped, then passed.

sort_order'asc' | 'desc'

Direction of sort_by. Only valid together with sort_by.

limitinteger

Maximum number of test cases to return, counted in response order across all test suites.

Response

OK

Changes

    • info

      added the new optional query request parameter class_name

    • info

      added the new optional query request parameter flaky

    • info

      added the new optional query request parameter limit

    • info

      added the new optional query request parameter sort_by

    • info

      added the new optional query request parameter sort_order

    • info

      added the new optional query request parameter status

    • info

      added the new optional query request parameter suite

    • info

      endpoint added