execution-spec-tests icon indicating copy to clipboard operation
execution-spec-tests copied to clipboard

Detect and raise an error if `state_test()` or `blockchain_test()` is executed more than once in one test function execution

Open danceratopz opened this issue 1 year ago • 0 comments

For example, see https://github.com/jochem-brouwer/execution-spec-tests/blob/dccaec30b31625c9eb4e6395d6caa854307204cd/tests/byzantium/precompiles/test_05_modexp.py which calls state_test in a for loop in a test function.

While every state_test() execution, respectively, test vector in data, will get filled, only the last generated test fixture will ever get stored and written to disk by the fixture collector.

danceratopz avatar Dec 20 '23 19:12 danceratopz