You can now automatically include tests that recently failed in subsets. This helps you verify that you've fixed a failing test. For example, if a test fails in your nightly test run, you want to keep running that test in today's subsets so you can check that it's been fixed.
This feature can be enabled using the new --prioritize-tests-failed-within-hours option for the
launchable subset CLI command.
For example, if you want to make sure to include any test that failed in the last day, add
--prioritize-tests-failed-within-hours to your
launchable subset command. Note that this option goes before the name of your test runner. For example:
launchable subset --build build-123 --confidence 95% --prioritize-tests-failed-within-hours 24 gradle project1/src/test/java > launchable-subset.txt