Skip to content

Check .gas-snapshot with --snapshot-check flag #7771

@schaable

Description

@schaable

Describe the issue

Tasks:

  • Add --snapshot-check flag to test and test solidity tasks
  • Compare current gas usage with stored .gas-snapshot (unit tests: single value, fuzz tests: median, invariant: skip)
  • Return non-zero exit code on mismatch
  • Create .gas-snapshot if it doesn't exist (don't fail)
  • Handle new tests (add entries without failing)

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions