LogoLogo
  • Welcome to Redefine
    • About
    • Quick Start ⏱️
      • Verification Examples
    • How Does It Work? 🔬
  • Configuration
    • Install Command
    • Configuration Parameters
    • Parallel Test Execution
      • Redefine Parallel
      • Remote Workers
        • Delayed Workers and Reruns
    • Selection Modes
      • Discover
      • Optimize
      • Fail-Fast
      • Prioritize
    • CI Platforms
    • Redefine Flow
  • Troubleshooting
    • Verify Troubleshooting
      • Environment Troubleshooting
      • Git Troubleshooting
      • Testing Frameworks
        • Cypress Troubleshooting
        • Pytest Troubleshooting
  • Integrations
    • Supported Technologies
    • AI Slack Notifications
Powered by GitBook
On this page
  • Testing Framework
  • Selection Mode
  • Exit code
  • Remote workers architecture specific flags
  1. Configuration

Install Command

PreviousHow Does It Work? 🔬NextConfiguration Parameters

Last updated 1 year ago

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:

redefine install --pytest --<selection-mode>

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 install --<testing-framework> --discover

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:

redefine install --<testing-framework> --<selection-mode> --exit-code

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

--optimize
--discover
--prioritize
--fail-fast
--worker