Sending data to Launchable
First, follow the steps in the Getting started guide to sign up, set your API key, install the Launchable CLI, and verify your connection.
Then return to this page to complete the two steps for sending data:
  1. 1.
    Recording builds
  2. 2.
    Recording test results
The diagram below diagrams the high-level data flow:

Recording builds

Launchable Predictive Test Selection selects tests based on the Git changes in a Build (among other data).
To send Git changes to Launchable, run launchable record build before you create a build in your CI script:
launchable record build --name <BUILD NAME> --source src=<PATH TO SOURCE>
  • With the --name option, you assign a unique identifier to this build. You will use this value later when you record test results. See Choosing a value for <BUILD NAME> for tips on choosing this value.
  • The --source option points to the local copy of the Git repository (or repositories) used to produce this build, such as . or src.

Recording test results

Launchable also uses your test results from your Test sessions.
After running tests, point the CLI to your test report files to collect test results for the build. Launchable uses the <BUILD NAME> value to connect the test results with the changes in the build:
launchable record tests --build <BUILD NAME> <TOOL NAME> <PATHS TO REPORT FILES>
The CLI natively integrates with the tools below. Click on the link to view instructions specific to your tool:

Inspecting uploaded test results

You can use launchable inspect tests to inspect uploaded data. This is useful for verifying that you passed the correct report path(s) into launchable record tests. You can also see the values Launchable uses to identify individual tests.
The output from launchable record tests includes a tip to run launchable inspect tests:
$ launchable record tests --build 123 gradle reports/*.xml
< summary table >
Run `launchable inspect tests --test-session-id 209575` to view uploaded test results
Running that command will output a table containing a row for each test including:
  • test identifier
  • duration
  • uploaded timestamp
For brevity, this command does not output stdout or stderr (although they are stored).

Next steps

Once you've started sending your builds and test results to Launchable, you can
  1. 1.
    See Trends in your test sessions,
  2. 2.
    Find Flaky Tests, and