Currently, PyTest detects when it is running in a CI pipeline by checking the environment variables $CI and $BUILD_NUMBER, and this is the only way CI mode can be controlled.
There should be command-line options to enable/disable CI mode, which supersede auto-detection based on env variables.
This ticket is split off from #13766 so that that ticket can be used to cover improvements to the env-based autodetection, while this one deals with the proposal to add command-line overrides for it.
Currently, PyTest detects when it is running in a CI pipeline by checking the environment variables
$CIand$BUILD_NUMBER, and this is the only way CI mode can be controlled.There should be command-line options to enable/disable CI mode, which supersede auto-detection based on env variables.
This ticket is split off from #13766 so that that ticket can be used to cover improvements to the env-based autodetection, while this one deals with the proposal to add command-line overrides for it.