-
Notifications
You must be signed in to change notification settings - Fork 107
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
feat(make): allow creation of a new test module within an existing tests subfolder #1241
base: main
Are you sure you want to change the base?
feat(make): allow creation of a new test module within an existing tests subfolder #1241
Conversation
I noticed that the helper function references some forks without corresponding directories. After testing, I encountered a diff |
Hey @Emirhan-Cavusoglu-sftw, thanks for this! If the corresponding fork directory doesn't, you can create it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @emrhncvsgl!
A few comments:
- It's not clear when adding a new test module name ("Enter module name (snake_case)"), whether the
test_
prefix is required or not in the user input (currently,test_the_thing
becomestest_test_the_thing
). I think the best thing for the user is to only add thetest_
prefix if not present, otherwise leave is. - "Select the fork" ->
London
still results inFileNotFoundError: [Errno 2] No such file or directory: 'tests/london'
- Please filter
__pycache__
entries out when selecting the directory:? Choose the type of test to generate State ? Select the fork Osaka ? Select test directory (Use arrow keys) Β» Use current location eip123_foo eip123_barbar __pycache__ eip7692_eof_v1 ** Create new sub-directory **
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @emrhncvsgl! I added a couple of small commits. The changes to the templates just mean that the generated files pass our lint checks after creation (this problem was there before π).
If you have time/like you can update the video in docs/writing_tests/img/eest_make_test.mp4
shown here:
https://ethereum.github.io/execution-spec-tests/main/writing_tests/
If not, I can update it tomorrow! Then we can get this merged.
Gonna update thanks π |
ποΈ Description
This PR modifies the
uv run eest make test
command to allow creating new tests in a subfolder or with additional parameters described in #1179.π Related Issues
resolves #1179
related #973
β Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.