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 indokrypt.yaml:
Built-in Validation Suite
If no test files are found, Dokrypt runs a built-in validation suite:Examples
Example Output
~/.dokrypt/reports/<project>/latest.json.
list
List all discovered test suites.Example Output
report
Show the results from the last test run.~/.dokrypt/reports/<project>/latest.json and displays the results, including gas report if available.