navigation

testmon.net

testmon.net keeps the data for you. Every job, branch and pull request gets the selection for its own checkout, from the results of all the others.

testmon.net in CI
  • Significant branches can still run all tests, if you want them to.
  • Pull request commits skip the unaffected tests.
  • The fastest tests run first, so with -x a failing run stops early.
  • Developers can use the same data on their machines.

Setup

Sign up to get an API key for your project. Put it in the environment of the CI job (as a secret):

TMNET_API_KEY=<your key> pytest --tmnet

or in your pytest configuration:

# pytest.ini
[pytest]
tmnet_api_key = projectname_b0f74c20b0684cf19a51bbec6fae63bb
# pyproject.toml
[tool.pytest.ini_options]
tmnet_api_key = "projectname_b0f74c20b0684cf19a51bbec6fae63bb"

If both are set, the environment variable wins and pytest warns when the two differ. An empty TMNET_API_KEY counts as unset.

–tmnet

--tmnet implies --testmon and takes the same options: --testmon-noselect, --testmon-forceselect, --testmon-nocollect and --testmon-env work as they do locally. Only the storage changes, from .testmondata to testmon.net. If testmon.net cannot be reached, the run falls back to the local .testmondata.

Open-source projects

We’ll prepare the pull request and start with nothing deselected, so you can check the selection before you rely on it. Sign up and we’ll get in touch.