DocsTest selection

Features

Test selection

What you do

  1. Turn it on in the Action step.

    .github/workflows/build.yml
    with:  select-tests: true
  2. Pass the selection to xcodebuild test; empty means run everything.

    Terminal
    xcodebuild test -scheme App $WARMBUILD_ONLY_TESTING

What you get

Pull requests run only the tests their change can reach. Pushes to the default branch still run everything, so a skipped failure shows up one push later.

  • Turn it on: select-tests: true on the Action. Pull requests then run only the tests their change can reach.
  • Run them: the Action exports the arguments in $WARMBUILD_ONLY_TESTING; pass them to xcodebuild test. Empty means run everything.
  • Pushes run everything: pushes to the default branch run every test, so a test that selection skipped and that would have failed is found one push later. The dashboard counts those misses and names the pull request.
  • When it runs everything: changes to the project, a package manifest, resources or many files at once.
  • Tuning: select-tests-always lists tests to run on every pull request; select-tests-ignore lists paths that never affect tests.
  • On a Mac: xcodebuild test … $(warmbuild tests --changed) does the same for your local diff.