Skip to content
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

Make the Vyper language test suite consumable #4503

Open
xrchz opened this issue Mar 5, 2025 · 0 comments
Open

Make the Vyper language test suite consumable #4503

xrchz opened this issue Mar 5, 2025 · 0 comments

Comments

@xrchz
Copy link
Contributor

xrchz commented Mar 5, 2025

The language tests (in tests/functional) are currently just written as Python code using pytest. This issue is to separate the test data out so that it can be used by others (notably by vyper-hol and ivy), and refactor the existing tests to also consume this data.

I'm pretty open to whatever test data format is easy to work with. For example, we could use JSON. The kinds of fields I would imagine to appear for each test record would include:

  • test name
  • sources: dictionary of named contract code strings
  • sequence of calls (contract, function name, arguments) and expected outputs (return data)
  • possibly: whether call arguments are supposed to be randomised, whether calls are supposed to revert

(I don't know whether this covers all the kinds of things you're already testing.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant