Testing: Assert on dev revert strings (ape test)See original GitHub issue
be able to assert using
ape.reverts on the dev revert message (it’s like a special comment in the contract source file).
this feature requires #347 transaction tracing in order to see what line of code the failure occurred on. could also just show the failed line of code directly with the assert, but the dev revert string is useful for coverage testing
with ape.reverts(dev_message="This is a dev message"): ...
dev_message should be a mutually exclusive parameter from the existing
Look at how
brownie did it as an example!
- Created 2 years ago
- Comments:5 (5 by maintainers)