Last updated
Last updated
Set up the Redefine CLI tool in your CI environment by copy-pasting the code below.
The Redefine CLI tool supports Python 3.6+ and is currently only available for CI environments, not the local developer's environment.
Once Redefine has been installed and configured, make sure that everything is working properly by running the verify
command. This command verifies whether your CI environment is compatible with Redefine, and returns a success message if all is good or an error message detailing any issues that need fixing. To run the command, follow these steps:
With Discover mode, Redefine analyzes your coding patterns and test results to create the initial test optimization model. To start the discovery process, simply replace the verify
command from the previous step with the following command:
The following examples show the final Redefine for development environments setup using pytest
. This gives an idea of what your configuration should look like once everything is in place.
Tracking the discovery progress
Store the Redefine authentication key in your CI system by following the recommended best practices for your specific CI platform: , , , , , or . Once stored, you can export the authentication key to the Redefine CLI by setting the environment variable as REDEFINE_AUTH
. This ensures that the CLI can access the authentication key securely and use it for authentication purposes.
If you haven't received your Redefine credentials yet, please reach out to us at , We'd be happy to assist you!
Check out for additional configuration options.
For more information on successful verification output and examples of failure cases, check out .
For a full list of error messages and resolutions, see .
For more information about selection modes, please see .
For all the GitHub Action options see the action's .
Monitor the progress of the discovery process and verify the data using the , which offers a user-friendly way to track the process and ensure accurate results.