Skip to main content

mojo test

Execute unit, integration, and documentation tests.

Synopsis

mojo test [options] <input>

Description

Execute the given Mojo tests.

Options

Collection options

--collect-only, --co

Only collect tests, don't execute them.

Output options

--json

Format the output of the command as JSON.

Compilation options

-I <PATH>

Appends the given path to the list of directories to search for imported Mojo files.

Common options

--help, -h

Displays help information.