You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be great if the user was able to run a test or even a whole collection of tests across a chosen set of input values.
(Note that this is different from fuzz testing across random values).
Example use cases:
Run tests across different address inputs. (Different Token Addresses, Contract Owner vs. non-owner, Contract vs. EOA etc)
Run a set of tests both before and after the upgrade of a contract
The feature would ideally allow the user to:
Parameterize a single test
Parameterize a whole test collection (contract)
Specify multiple parameters in which case the test(-collection) will be run for all combinations
Set the values to parameterize dynamically (for example in the setUp method) (optional)
Pass filter arguments to forge test to only run a subset of the originally specified parameter space (similar to --match-test
Additional context
One testing library that does this fairly well imo is pytest (see here).
The text was updated successfully, but these errors were encountered:
Component
Forge
Describe the feature you would like
It'd be great if the user was able to run a test or even a whole collection of tests across a chosen set of input values.
(Note that this is different from fuzz testing across random values).
Example use cases:
The feature would ideally allow the user to:
setUp
method) (optional)forge test
to only run a subset of the originally specified parameter space (similar to--match-test
Additional context
One testing library that does this fairly well imo is pytest (see here).
The text was updated successfully, but these errors were encountered: