foundry
foundry copied to clipboard
Gas tracks failed
Component
Forge
Have you ensured that all of these are up to date?
- [X] Foundry
- [X] Foundryup
What version of Foundry are you on?
forge 0.2.0 (307576d 2022-08-29T00:05:05.72678Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
I report issue#2984. After upgrade by foundryup, revertTo works well. But when I use the same config as mentioned in #2984, the gas output are all zero like below:
[PASS] testClaimReward() (gas: 0)
[PASS] testReceive(uint256) (runs: 1024, μ: 0, ~: 0)
After more tests I found that it's not gas tracking failed. It's the whole test not run at all. Whatever I put in the test, it always PASS and the gas used is always ZERO.
Marking this as stale as it very likely been resolved over time.
If you are still experiencing the issue please re-open the ticket.