---
title: "Open saved test results"
description: "The standalone CLI includes a local viewer for runs saved in the default project database."
---

> M3 v0.3.4 · commit 735afab7c12f329ebaa19767b35a72a6bb7c7bb9.


# Open saved test results

The standalone CLI includes a local viewer for runs saved in the default
project database.

## Create and open a run

From the project root used in [Your first MCP test](https://m3.sineframe.com/docs/getting-started.md):

```sh
m3 test --ui -- tests/test_m3_starter.py
```

After pytest finishes, the CLI prints a tokenized loopback URL and opens the
newly stored run. It remains running so the browser can load data. Press
Ctrl+C when finished.

To open existing history without running tests:

```sh
m3 ui
```

`m3 ui` reads `.m3/executions.sqlite` under the project root: the nearest
`m3.toml` at or above the current directory, stopping at the Git root, or the
directory passed as `--project-root PATH`. It uses that default path; a
database selected with `m3 test --results-db PATH` cannot be supplied to
`m3 ui`.
`m3 ui` prints a tokenized `/reports` link. It never creates a database and
refuses missing or invalid history.

The server binds to `127.0.0.1` and requires the launch token. Treat the
printed URL as a credential while the process is running. Do not expose the
viewer through a public reverse proxy.
