Skip to content

Test

Rust

cargo test
cargo fmt --check
cargo clippy

Host tests map every unit path under a temporary root. They cover:

  • manifest parsing and validation;
  • package build, read and extract;
  • install, update, rollback and remove;
  • plugin checks, approval and grants;
  • SDK package handling;
  • supervisor conditions;
  • online index, release and verify;
  • the web API and upload flow.

Web

The front end uses Node's built-in test runner:

npm --prefix web test

Package examples

Build a package and verify it:

cargo run --release -- build path/to/package out
cargo run --release -- verify out

For a combined product package, check the SDK plugin half too:

cargo run --release -- verify out --unit MHI2Q

Docs

python3 -m pip install -r docs/requirements.txt
python3 tools/check_docs.py
mkdocs build --strict

Before a release

cargo test
npm --prefix web test
python3 tools/check_docs.py
mkdocs build --strict