Docs/Test runs
#

Test runs

Reference for Cofactor test runs. Start a test run from Regression, a tag or a named suite, which flows run, statuses, scenarios, retries, cancel, CLI flags and exit codes.

A test run starts many flows together and reports each flow's result. Each row is a workflow run, so you can open any row to see its steps and video.

Start a test run

  1. Select Suites in the sidebar. It opens Test Runs.

  2. Select New test run.

  3. In Start Test Run, choose the Scope.

    ScopeWhat runs
    All Regression workflowsEvery flow in Regression.
    By tagRegression flows that carry the Tag.
    SuiteThe members of the Suite you pick (test suites).
  4. For All Regression workflows and By tag, Application starts as All applications. If you pick an application, also pick its Environment. Cofactor fills in the default one. Only flows whose credentials are bound to that application run. For a Suite, choose Each flow's preferred env or Force the suite's environment. An external suite runs in its own configured environment and shows neither choice.

  5. If degraded flows are in scope, Re-enable degraded flows appears. Select it to run them.

  6. Select Start Test Run.

Start from the CLI

bash
cofactor test-suite run --suite "Checkout"
cofactor test-suite run --tag smoke
cofactor test-suite run --application "Acme App" --environment staging

The command streams each flow's result and ends with a summary.

FlagMeaning
--suite <name|id>Run a named suite. Members run in layer order.
--tag <tag>Run the Regression flows that carry the tag. Ignored with --suite.
--application <name|id>Target one application.
--environment <name|id>Target one environment. Needs --application when you have more than one application.
--env-mode <mode>mixed runs each flow on its preferred environment. force pins every flow to --environment. With --environment and no --env-mode, the mode is force.

Run cofactor test-suite run --help for all flags.

Exit codeMeaning
0Nothing failed and no flow ended with a platform error.
1A flow failed, timed out or was canceled. Also 1 when the run cannot start, for example when a filter matches no flow, or a named suite has no flow in a layer.
2Nothing failed, but at least one flow ended with a platform error.

List recent runs with cofactor test-suite executions, read one with cofactor test-suite get <execution id>, and stop one with cofactor test-suite cancel <execution id>.

See CLI in CI and Suites and schedules.

Which flows run

Flow stateWhat happens
In the scope and healthyIt runs.
Paused, Blocked, Under construction or DeprecatedIt does not run. The row reads Skipped.
In Regression, waiting for its first passIt does not run until it has passed once. The row reads Skipped.
DegradedIt does not run. The row reads Degraded.
Staged in a named suiteIt does not run until you move it into a layer.

See Flows for status and health.

Scenarios

A flow with scenarios runs once for each scenario that has Include in test suite on. That switch is on by default. The scenario name appears on its row.

Statuses

The header badge shows the status of the whole test run.

StatusMeaning
QueuedWaiting to start.
RunningFlows are running.
CompletedNo flow failed and none ended with a platform error.
Completed (Errors)A flow failed, timed out or was canceled, or a teardown or performance test failed.
Platform errorsNo flow failed, but at least one ended with a platform error.
CanceledThe test run was canceled.

Each row shows the flow's result: Queued, Running, Waiting, Passed, Failed, Platform error, Timed Out, Skipped, Degraded or Canceled. See Runs.

Read a test run

The header shows the duration, when it started, how many workflows have finished, who started it, and the suite name. The summary below it shows the result counts and the triage. The table lists the flows. Use the search box, the Status filter, Failures only and Retried to narrow it. Select a row to open its run.

Run again

  • Rerun, in a row's actions menu, runs that one flow again.
  • Retry all failed (N) appears in the header when N flows can be retried. It runs again each flow that failed, timed out or ended with a platform error.
  • New Run appears once the run has finished. It starts a new test run with the same workflows.

Cancel and delete

Cancel Run appears in the header while the run is going. Delete Execution at the bottom of a finished test run deletes it and all its results.