- 
                Notifications
    You must be signed in to change notification settings 
- Fork 293
Add configuration option for test executor arguments #2636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 6 commits
3515485
              14fb8d1
              5d3e2ab
              8240dfe
              d238fb9
              080b33a
              3a35df1
              5c0940c
              e706370
              c33f4fe
              9b24b80
              4051400
              dcd0743
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -1669,6 +1669,41 @@ Platform-specific environment variables are also available:<br/> | |
| CIBW_TEST_ENVIRONMENT: PYTHONSAFEPATH=1 | ||
| ``` | ||
|  | ||
| ### `test-execution-args` {: #test-execution-args toml env-var } | ||
|  | ||
| > Define additional arguments that will be passed to the command that runs the tests. | ||
|          | ||
|  | ||
| A list of arguments that will be used by the test runner when running tests. This is used by environments where the execution environment can be customized. For example, mobile platforms will use these arguments to control the execution of the testbed application that is used to run tests. | ||
|  | ||
| This option will be ignored on platforms that do not have a separate test runner. | ||
|  | ||
| Platform-specific environment variables are also available:<br/> | ||
| `CIBW_TEST_EXECUTION_ARGS_MACOS` | `CIBW_TEST_EXECUTION_ARGS_WINDOWS` | `CIBW_TEST_EXECUTION_ARGS_LINUX` | `CIBW_TEST_EXECUTION_ARGS_ANDROID` |`CIBW_TEST_EXECUTION_ARGS_IOS` | `CIBW_TEST_EXECUTION_ARGS_PYODIDE` | ||
|         
                  joerick marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
|  | ||
| #### Examples | ||
|  | ||
| !!! tab examples "pyproject.toml" | ||
|  | ||
| ```toml | ||
| [tool.cibuildwheel.ios] | ||
| # Run the tests on an iPhone 16e simulator running iOS 18.5. | ||
| test-execution-args = ["--simulator='iPhone 16e,OS=18.5'"] | ||
|  | ||
| [tool.cibuildwheel.android] | ||
| # Run the Android tests on the minimum supported Android version. | ||
| test-execution-args = ["--managed", "minVersion"] | ||
| ``` | ||
|  | ||
| !!! tab examples "Environment variables" | ||
|  | ||
| ```yaml | ||
| # Run the tests on an iPhone 16e simulator running iOS 18.5. | ||
| CIBW_EXECUTION_ARGS_IOS: --simulator='iPhone 16e,OS=18.5' | ||
|  | ||
| # Run the Android tests on the minimum supported Android version. | ||
| CIBW_EXECUTION_ARGS_ANDROID: --managed minVersion | ||
| ``` | ||
|  | ||
|  | ||
| ## Debugging | ||
|  | ||
|  | ||


Uh oh!
There was an error while loading. Please reload this page.