The Intelligent Test Runner is a Scope agent feature that allows them to skip tests that have not been affected by source code changes since the last time they were run. This can lead to significant time and cost savings.
This is done by comparing the Code Path of your tests with the git file change information of your commit. Any test potentially impacted by code changes will be selected to run.
We recommend activating the Intelligent Test Runner only in feature and bug fix branches where feedback speed is preferred over correctness (although still with a high degree of confidence), and keeping it disabled in
master and/or other branches where correctness is more critical than speed.
Note that the Intelligent Test Runner feature is in beta
The Intelligent Test Runner is enabled in specific branches of your repository. For example, to enable it
for all branches other than
master, set the following environment variables:
SCOPE_CODE_PATH_ENABLED="true" SCOPE_RUNNER_ENABLED="true" SCOPE_RUNNER_EXCLUDE_BRANCHES="master"
Note that Code Path has to be also enabled in order for the Intelligent Test Runner to work. Check out the agent configuration documentation for more information.