Skip to main content

Opening from the CLI

Typically, the recommended way to open the Cycle Report Dashboard is from the Cycle Desktop IDE. However, there may be cases when you need to open it from the command line interface (CLI) instead.

For example, when running tests from the Cycle CLI in a Continuous Integration (CI) system, you may want to review test results in the Report Dashboard after they have completed. To do this, you could:

  1. save the test result database file after tests finish running
  2. download the database file to your local machine
  3. launch the Report Dashboard from the CLI with the database file

When running the Report Dashboard from the CLI, it cannot receive new test results from live tests. It can only display results in a saved database file.

Saving the test result database file

When running tests via the Cycle CLI, include the --db-file-output-directory argument to specify a output path for saving the test result database file. For example:

cycle-cli --db-file-output-directory results.db mytests.feature

The Report Dashboard saves the test results file as a SQLite database file. It should use a .db or .sqlite file extension. The database file must be set explicitly at the time the tests are launched. It cannot be set or accessed after tests have started.

Launching the Report Dashboard

The Report Dashboard is active while the Cycle CLI is actively running tests. However, after the tests are complete, the dashboard will no longer be active. You will need to explicitly launch the dashboard process from the CLI to continue using the dashboard. Wait until the process exits and saves the test result database file before attempting to start the dashboard from the CLI.

The executable for the Report Dashboard is located under the Cycle installation folder at .\Cycle\cycle-result-service\cycle-result-service.exe. When launching the executable, include the -dbFile argument to set the test result database file. For example:

.\cycle-result-service.exe -dbFile results.db

The dashboard will remain active for as long as this process is running. Enter Ctrl+C at the command line to kill the process.