Skip to main content

mojo test

Execute unit, integration, and documentation tests.


mojo test [options] <input>


Execute the given Mojo tests.


Collection options

--collect-only, --co

Only collect tests, don't execute them.

Output options


Format the output of the command as JSON.

Compilation options


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

Common options

--help, -h

Displays help information.