From cf6b9a33d438c90fa883cd11d1250b724b443c77 Mon Sep 17 00:00:00 2001 From: ebulku Date: Mon, 2 Dec 2024 11:38:02 +0100 Subject: [PATCH] Update test-contracts.md (#6008) * Update test-contracts.md * Update docs/src/content/hardhat-runner/docs/guides/test-contracts.md --------- Co-authored-by: John Kane --- .../content/hardhat-runner/docs/guides/test-contracts.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/content/hardhat-runner/docs/guides/test-contracts.md b/docs/src/content/hardhat-runner/docs/guides/test-contracts.md index e7787776f0..93ec85f086 100644 --- a/docs/src/content/hardhat-runner/docs/guides/test-contracts.md +++ b/docs/src/content/hardhat-runner/docs/guides/test-contracts.md @@ -378,6 +378,12 @@ The Hardhat Toolbox also includes the [`hardhat-gas-reporter`](https://github.co REPORT_GAS=true npx hardhat test ``` +For Windows users, set the environment variable for the PowerShell session with `$env:REPORT_GAS="true"`: + +``` +$env:REPORT_GAS="true"; npx hardhat test +``` + ### Running tests in parallel You can run your tests in parallel by using the `--parallel` flag: