Skip to content

Hook to run functions after invariant test run #1434

@sveitser

Description

@sveitser

Describe the desired feature

Foundry allows defining a function afterInvariant that runs after invariant tests. It's briefly mentioned in the docs on this page.

We're using it to run print some stats, run some extra asserts that are slow to run and to withdraw all funds from a contract to ensure all users can withdraw what they own.

I couldn't find such functionality in echidna so currently I'm skipping it for our echidna test. Is it currently possible to do something along those lines? If not, is this a feature you could consider adding?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions