Skip to main content
Manage, view, and upload test results.

upload

Upload test results to Momentic dashboard.
npx momentic results upload <folder>

Arguments

<folder>
string
required
The path to the folder containing test results generated by a momentic run invocation or by the momentic results merge command. momentic run saves local results to the folder specified by the --output-dir option, which defaults to test-results.

merge

npx momentic results merge [options] <parent folder>

Arguments

<parent folder>
string
required
The parent folder for the results to merge. This folder must contain only valid Momentic test outputs. For example, if you pass --output-dir test-results/results-1 to the run command, your parent folder is test-results.

Options

--output-dir <outputDir>
string
The directory to output the merged results to. The folder will be overwritten if it already exists on disk.

view

Launch the run viewer to inspect test results locally. Starts a local server, opens it in your browser, and opens the specified run in the run viewer UI.
npx momentic results view <results> [runId]

Arguments

<results>
string
required
Path to the folder containing a runs/ subfolder with test results. Defaults to test-results. momentic run saves local results to the folder specified by the --output-dir option.
[runId]
string
The run ID to open, correlates to a zip file in the runs/ subfolder of your results directory. For example, for runs/eed92602-7355-43dc-8d79-1c43029bec26.zip use runId eed92602-7355-43dc-8d79-1c43029bec26. If not provided, the run viewer opens to a table with all runs in the run group within the results directory.

Options

--port <port>
number
Port for the run viewer server. Defaults to 58889.
npx momentic results view --port 59999 my-results eed92602-7355-43dc-8d79-1c43029bec26