-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(forge): integration testing & test harnesses #1395
Comments
I think the harness testing would be achieved via #858 and #834, each case would declare its parameters/environment including As for #1378, I opened this issue (#1414) as a Quality of Life change & to make it more intuitive for new users. |
Then in that case we can close this? |
Yep, the only difference is declaring test cases in solidity vs some other format. Happy to close this for now and watch how the other issues play out |
Component
Forge
Describe the feature you would like
Current Behavior
forge test
picks up and runs allfunction test*
forge test
is calledDesired Behavior
Ideally, we would distinguish between two types of tests:
Unit testing would continue as it currently runs, the UX of
forge
is strong in this area. Integration tests would however carry around config as to the environment they expect to run in. I see two ways to achieve this:solidity
TestHarness
that requires config to be passed in constructortoml
/json
contract
orfunction
within the contractcontract
orfunction
, enabling a form of table testing (though I suspect there might be better UX from pure solidity here)Next steps
Interested in getting feedback on:
Additional context
No response
The text was updated successfully, but these errors were encountered: