Setup

forge install

Run the test

Run the all testcase

forge test

Run the particular testcase

forge test -m testMint

Gas Report

forge test --gas-report

Gas Report

Gas SnapShot

create the snapshot file of the gas

forge snapshot