launchable subsetalong with:
launchable subsetwill get a subset from the Launchable platform and output that list to a text file
launchable record tests).
launchable record tests).
--confidence 90%, Launchable will populate the subset with relevant tests up to the corresponding expected duration value on the x-axis. For example, if the corresponding duration value for 90% confidence is 3 minutes, Launchable will populate the subset with up to 3 minutes of the most relevant tests for the changes in that build. This is useful to start with because the duration should decrease over time as Launchable learns more about your changes and tests.
--time 10m, Launchable will populate the subset with up to 10 minutes of the most relevant tests for the changes in that build. This is useful if you have a maximum test runtime in mind.
--target 20%, Launchable will populate the subset with 20% of the expected duration of the most relevant tests. For example, if the expected duration of the full list of tests passed to
launchable subsetis 100 minutes, Launchable will return up to 20 minutes of the most relevant tests for the changes in that build. This is useful if your test runs vary in duration.
launchable subset. Here's an example using Ruby/minitest and
--buildoption should use the same
<BUILD NAME>value that you used in
launchable record build.
launchable-subset.txtthat you can pass into your command to run tests:
launchable inspect subsetto inspect the details of a specific subset, including rank and expected duration. This is useful for verifying that you passed the correct tests or test directory path(s) into
launchable subsetincludes a tip to run
launchable inspect subset:
.001seconds were not recognized by Launchable
launchable inspect subsetwill output a prioritized list of test classes. Similarly, since Cypress can accept a list of test files as input,
launchable inspect subsetwill output a list of prioritized test files. (And so on.)
launchable-subset.txt) and the remainder (
launchable-remainder.txt) using the
--restoption. Here we're using Ruby and minitest:
launchable-remainder.txtthat you can pass into your command to run tests in two stages. Again, using Ruby as an example:
launchable subsetwith the
--splitoption. Instead of outputting a list of tests, the command will output a subset ID that you should save and pass into each runner.
--subset-idoption set to the ID you saved earlier, and
--binvalue set to
launchable record testswith the
--subset-idoption set to the ID you saved earlier.