Using Branching to Approve Self-healing Test Updates
Overview
Use branching to create an approval system for tests that include any AI blocks.
By default, all tests will be self-healed automatically. If you want to implement an approval process, you can create a branch and start a run on the branch to review any proposed changes. Branching is also supported by the API and the CLI, so you can still kick off your tests programmatically.
How it works
- Create a test containing an AI block.
- Create a branch.
- Kick off a run on that branch.
- If any test is self-healed, the changes will be applied to this branch only, not to your main version.
- You can run as many times as you like and edit things manually until you’re happy with the new version of the test.
- Do a final review where you can see all the changes that will be applied.
- Click the ‘Merge’ button. All self-healed test changes are now live on the main branch.
Generating self-healing tests best practices
Visit this article to learn more.
If you have any questions, reach out to us at [email protected].
Updated 7 months ago