---
title: run_tests
description: Plays the scenarios in a branch's or a commit's tests/<name>.test.ts
  files (default main) with stand-in visitors, signed in as a row the scenario names
  or not at all, and rows of their own; the site's rows are never touched.
sidebar:
  order: 39
---

Plays the scenarios in a branch's or a commit's tests/&lt;name&gt;.test.ts files (default main) with stand-in visitors, signed in as a row the scenario names or not at all, and rows of their own; the site's rows are never touched. Typed inside `bash`, where `help run_tests` prints the same.

```text
Usage: run_tests [options]

Plays the scenarios in a branch's or a commit's tests/<name>.test.ts
files (default main) with stand-in visitors, signed in as a row the
scenario names or not at all, and rows of their own; the site's rows
are never touched. Answers each scenario by name,
and for one that fails its line, what did not hold and what the
page showed. merge_branch is refused while one fails. Read guide
vzk/tests.

Options:
  --ref TEXT
      A branch name (git branch lists them) or a commit id (git log). Defaults to main.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
