ethereum / execution-specs

Specification for the Execution Layer. Tracking network upgrades.
Creative Commons Zero v1.0 Universal
810 stars 225 forks source link

Automatically detect tests that throw exceptions #760

Closed gurukamath closed 1 year ago

gurukamath commented 1 year ago

In the new testing fixtures, a test that is supposed to throw an exception has an expectedException field within the fixture. This can be used to detect where an exception is to be expected. Currently, the tests where exceptions are expected are hard coded in the tests in a large number of modules.