Skip to main content

Usage

Subcommands


run

Discover and run tests with optional filtering, gas reporting, and coverage.

Flags

Test File Discovery

Dokrypt automatically discovers tests based on file patterns: Search directories (in order): test/, tests/, contracts/test/, or as configured in dokrypt.yaml.

Configuration via dokrypt.yaml

Test settings can also be configured in dokrypt.yaml:
CLI flags take precedence over config values.

Built-in Validation Suite

If no test files are found, Dokrypt runs a built-in validation suite:

Examples

Example Output

Results are persisted to ~/.dokrypt/reports/<project>/latest.json.

list

List all discovered test suites.

Example Output


report

Show the results from the last test run.
Loads ~/.dokrypt/reports/<project>/latest.json and displays the results, including gas report if available.

Example Output