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

Reference tests' coverage #582

Open
hmijail opened this issue Aug 4, 2022 · 2 comments
Open

Reference tests' coverage #582

hmijail opened this issue Aug 4, 2022 · 2 comments
Labels
A-tool Area: tooling C-question Category: this is a question or request for clarification

Comments

@hmijail
Copy link

hmijail commented Aug 4, 2022

My team is writing a verified EVM, and we are working on running the reference tests on it. So we would like to compare our results to the execution specs' test runs.

For that, I'm trying to understand how much of the EVM and of the tests is currently covered by the execution specs; browsing through the source I see that not all tests are run.

Is there any better/easier way to grasp the current status than reading the source and understanding all the testing machinery?

Relatedly, is there any connection between the execution specs and the PyEVM?

@SamWilsn SamWilsn added A-tool Area: tooling C-question Category: this is a question or request for clarification labels Oct 10, 2022
@SamWilsn
Copy link
Collaborator

For that, I'm trying to understand how much of the EVM and of the tests is currently covered by the execution specs; browsing through the source I see that not all tests are run.

As far as I am aware, we implement the full EVM up to but excluding the Paris fork. We do skip some tests, but #597 is unskipping a bunch.

Is there any better/easier way to grasp the current status than reading the source and understanding all the testing machinery?

I believe (and perhaps @gurukamath can confirm) that if you run the tests all the fixtures are listed and the xfails are skipped because we don't support them.

Relatedly, is there any connection between the execution specs and the PyEVM?

Nope, this is all pretty fresh.

@gurukamath
Copy link
Collaborator

Yes. You can simply run the state tests with the -v option to display the fixtures that are run.

For example, if you want to see the frontier tests that are run

pytest -v tests/frontier/test_state_transition.py

pytest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tool Area: tooling C-question Category: this is a question or request for clarification
Projects
None yet
Development

No branches or pull requests

3 participants