Viewing local results / Root Cause CLI

After running tests Root Cause saves test data into a .root-cause folder. The results can be accessed through the root-cause CLI and then viewed in a web browser.

To list the recent test runs:

npx root-cause ls

Example output:


root cause cli ls example

To see the results of a specific test, copy the id and pass it to the npx root-cause show, as following:

npx root-cause show <result-id>

This will open your default browser with the Root Cause viewer that looks something like this:


Root Cause viewer example

You may also interactively select the test to show:


root cause cli show

To see all of the Root Cause CLI possible options:

npx root-cause --help