Implementing Launchable is a three step process:
Recording test results
Subsetting test execution
The Launchable CLI enables this integration. To get started, install the CLI in your CI system, set your API key, then follow the instructions for your test runner or build tool.
The Launchable CLI is a Python3 package that you can install from PyPI:
pip3 install --user --upgrade launchable~=1.0
--user flag installs the package in the local account without needing root access. This is handy when you are adding this to your build script for your CI server.
--upgrade flag makes sure to always install the latest
First, create an API key at app.launchableinc.com (or use the one you received from us). This authentication token allows the CLI to talk to the Launchable service.
Then, you’ll need to make this API key available as the
LAUNCHABLE_TOKEN environment variable in the parts of your CI process that interact with Launchable. How you do this depends on your CI system:
Azure DevOps Pipelines
(Create a global "secret text" to use in your job)
After setting your API key, you can run
launchable verify in your script to test connectivity. If successful, you should receive an output such as:
$ launchable verifyOrganization: <organization>Workspace: <workspace>Platform: macOS-11.2.3-x86_64-i386-64bitPython version: 3.9.2Java command: javalaunchable version: 1.8.0Your CLI configuration is successfully verified 🎉
If you get an error, see Troubleshooting.
It is always a good idea to run
launchable verify in your build script, as this information is useful in case any problems arise. In that case, it is recommended to connect
|| true so that the exit status is always
launchable verify || true
Now that you've added the CLI to your pipeline, you can start optimizing your tests. The CLI natively integrates with the tools below. Click on the link to view instructions specific to your tool:
Not using any of these? Try the generic file based test runner option.