Skip to content

feat(cheatcodes): enable --isolate by default #9912

Open
@gabkov

Description

@gabkov

Component

Forge

Describe the feature you would like

Currently, --gas-report uses --isolate by default (as noted in #6578 (comment)) to ensure accurate gas measurements. Additionally, it has been suggested (see #8573 (comment)) that --isolate should be used for the most precise gas measurements when vm.lastCallGas() is utilized.

Given this context, I think it would be logical to enable --isolate by default for tests that include snapshotGas cheatcodes.

For example, the current command:

FORGE_SNAPSHOT_CHECK=true forge test --isolate --mt testGas -vvv

could be simplified to:

FORGE_SNAPSHOT_CHECK=true forge test --mt testGas -vvv

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Blocked

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions