coverage

Inspect Test Coverage for this Package

Inspect test coverage for this package. A previous test run with the --coverage flag must have previously been run.

Usage

movement sui move coverage [OPTIONS] <COMMAND>

Commands

  • summary Display a coverage summary for all modules in this package.

  • source Display coverage information about the module against source code.

  • bytecode Display coverage information about the module against disassembled bytecode.

  • help Print this message or the help of the given subcommand(s).

Options

  • -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.

  • --test Compile in 'test' mode. The 'dev-addresses' and 'dev-dependencies' fields will be used along with any code in the 'tests' directory.

  • --doc Generate documentation for packages.

  • --abi Generate ABIs for packages.

  • --install-dir <INSTALL_DIR> Installation directory for compiled artifacts. Defaults to current directory.

  • --force Force recompilation of all packages.

  • --fetch-deps-only Only fetch dependency repos to MOVE_HOME.

  • --skip-fetch-latest-git-deps Skip fetching 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: The -h, --help and -V, --version options are not shown in the generated output.

Last updated