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

Allow spec tests author to batch tests under one handler name #2576

Merged
merged 2 commits into from
Sep 1, 2021
Merged

Allow spec tests author to batch tests under one handler name #2576

merged 2 commits into from
Sep 1, 2021

Conversation

ralexstokes
Copy link
Member

@ralexstokes ralexstokes commented Aug 30, 2021

Request from implementation teams to batch "like-operations" when generating consensus spec tests.

The test generation infra followed the file tree of the test repo to determine the organization of the output test data.

This PR allows a test author to batch tests under one handler name, regardless of file tree layout, by providing a list of "like" test modules, rather than just a single str of the module name.

This PR also adds a "collect" mode to the test generation infra (like the pytest collection phase), used to verify we pulled the same number of tests with this change.

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also group the new random tests with the other block tests?

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. spoke with @ralexstokes out of band and agreed there is value in splitting out "sanity" and "random" block tests especially for new clients coming online

@djrtwo djrtwo merged commit cb7c81e into ethereum:dev Sep 1, 2021
@ralexstokes ralexstokes deleted the consolidate-like-operations-tests branch September 2, 2021 03:38
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

Successfully merging this pull request may close these issues.

2 participants