test

Run spread tests for the project.

Usage

snapcraft test [options] <test_expressions>

Required

test_expressions

Optional spread test expressions. If not provided, all craft backend tests are run.

Options

--debug

Shell into the environment if the build fails.

--platform

Set platform to build for.

--pro

Enable Ubuntu Pro services for this command. Supported values include: ‘esm-apps’, ‘esm-infra’, ‘fips’, ‘fips-preview’, ‘fips-updates’. Multiple values can be passed separated by commas. Note: This feature requires an Ubuntu Pro compatible host and build base.

--shell

Shell into the environment in lieu of the step to run.

--shell-after

Shell into the environment after the step has run.

Global options

-h or --help

Show this help message and exit.

-q or --quiet

Only show warnings and errors, not progress.

-v or --verbose

Show debug information and be more verbose.

--verbosity

Set the verbosity level to ‘quiet’, ‘brief’, ‘verbose’, ‘debug’ or ‘trace’.

-V or --version

Show the application version and exit.