Start Command
The redefine start 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.
The testing framework flag is a required field for successful redefine installation. It specifies the testing framework to be used for test execution.
For example, running the following command would make use of the
pytest
testing framework:redefine start --pytest --<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:
For instance, executing the following command would employ the
discover
mode:redefine start --<testing-framework> --discover
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:redefine start --<testing-framework> --<selection-mode> --exit-code
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 Remote Workers
Last modified 3mo ago