Install Command
The redefine install
command is used to install the redefine plugin and enable redefine's functionality. It's important to note that the start command should be executed prior to running the tests.
Testing Framework
The testing framework flag is a required field for successful redefine installation. It specifies the testing framework to be used for test execution.
To see the list of supported testing frameworks, refer to the documentation Supported Technologies
For example, running the following command would make use of the pytest
testing framework:
Selection Mode
The selection mode flag is a mandatory parameter for the start command. It specifies the relevant selection mode for the test execution.
The available selection modes are:
--optimize
, --discover
, --prioritize
, --fail-fast
, --worker
For instance, executing the following command would employ the discover
mode:
Exit code
The --exit-code
flag enhances error handling during installations by modifying the behavior of the start command to provide clear feedback in the event of issues.
By default, redefine allows pipelines and tests to continue running even in the presence of installation issues. However, this approach can lead to unintended outcomes, such as running all tests in the orchestrator within a remote-workers architecture or executing tests despite not aligning with the user's preferred timeframe.
To use the --exit-code
flag, include it in the redefine start command as follows:
Remote workers architecture specific flags
Certain flags are specifically relevant to the remote workers' architecture. These flags provide functionality tailored to this architecture.
To learn more about these flags and their usage, refer to the relevant documentation available at Parallel Test Execution
Last updated