Test arbitrarily generated opshin validators with hypothesmith #167
Labels
bb: medium
Medium issue according to bug bounty categorization
bug bounty
This issue is prized out as part of the Bug Bounty Program
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
So far we need to create manual unit tests for compilation with opshin. Using hypothesis to generate opshin code would help catch bugs in compilation at a higher rate and give more assurance of what opshin can do.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I found a cool library called hypothesmith that can generate arbitrary python code.
It would be awesome if we could extend this to test validators with a reduced subset of python that's valid for opshin.
I have not taken an in depth look at this library yet, but the next steps would be to do some experiments generating opshin code.
Describe alternatives you've considered
None
Additional context
N/A
The text was updated successfully, but these errors were encountered: