test
Run Move Unit Tests in this Package
Runs unit tests in the specified package.
Usage
Arguments
`` An optional filter string to determine which unit tests to run. A unit test will be run only if it contains this string in its fully qualified (
<addr>::<module_name>::<fn_name>
) name.
Options
-i, --gas-limit <gas-limit>
Bound the amount of gas used by any one test.-p, --path <PACKAGE_PATH>
Path to a package which the command should be run with respect to.-d, --dev
Compile in 'dev' mode. The 'dev-addresses' and 'dev-dependencies' fields will be used if this flag is set. This flag is useful for development of packages that expose named addresses that are not set to a specific value.-l, --list
List all tests.-t, --threads <num-threads>
Number of threads to use for running tests. Default is 8.--test
Compile in 'test' mode. The 'dev-addresses' and 'dev-dependencies' fields will be used along with any code in thetests
directory.--doc
Generate documentation for packages.-s, --statistics [<report-statistics>]
Report test statistics at the end of testing. A CSV report will be generated ifcsv
is passed as an argument.--abi
Generate ABIs for packages.--stackless
Use the stackless bytecode interpreter to run the tests and cross check its results with the execution result from the Move VM.--install-dir <INSTALL_DIR>
Installation directory for compiled artifacts. Defaults to the current directory.--verbose
Verbose mode.--coverage
Collect coverage information for later use with the variousmove coverage
subcommands. Currently supported only in debug builds.--force
Force recompilation of all packages.--fetch-deps-only
Only fetch dependency repos to MOVE_HOME.--no-lint
Iftrue
, disable linters.--skip-fetch-latest-git-deps
Skip fetching the latest git dependencies.--default-move-flavor <DEFAULT_FLAVOR>
Default flavor for move compilation, if not specified in the package's config.--default-move-edition <DEFAULT_EDITION>
Default edition for move compilation, if not specified in the package's config.--dependencies-are-root
If set, dependency packages are treated as root packages. Notably, this will remove warning suppression in dependency packages.--silence-warnings
If set, ignore any compiler warnings.--warnings-are-errors
If set, warnings become errors.-h, --help
Print help.-V, --version
Print version.
Note: Additional options
-h
and-V
are available for printing help and version information respectively.
Last updated