Skip to content

Verbosity levels

The --verbosity (or -v) global option controls the amount of output shown during test execution, script runs, and deployments when using simulated networks.

Default verbosity is 2. Use -v (level 1), -vv (level 2), -vvv (level 3), etc.

Terminal window
npx hardhat test -vvv

You can also use the long form:

Terminal window
npx hardhat test --verbosity 3

Each level includes everything from the previous levels.

LevelWhat it adds
0Test names and pass/fail status only
1Decoded logs for failing tests
2Decoded logs for passing tests (default)
3Execution call traces for failing tests; stack traces always collected
4Execution call traces for passing tests; setup traces for failing tests
5Setup traces for passing tests

TypeScript tests run against a Hardhat Network node. Verbosity controls the RPC call trace output printed to the console:

LevelWhat it shows
0–2No call traces (default)
3Call traces for failing transactions only
4Call traces for all transactions
5All traces with no deduplication (shows estimations, repeated polling, etc.)

For scripts and tasks (hardhat run, hardhat ignition deploy, etc.)

Section titled “For scripts and tasks (hardhat run, hardhat ignition deploy, etc.)”

Same RPC call trace behavior as TypeScript tests:

LevelWhat it shows
0–2No call traces (default)
3Call traces for failing transactions only
4Call traces for all transactions
5All traces with no deduplication