-
Notifications
You must be signed in to change notification settings - Fork 994
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
📝 Add gen test documentation generation #3497
base: dev
Are you sure you want to change the base?
📝 Add gen test documentation generation #3497
Conversation
What do you mean by pycharm (IDE?) here? I think of two solutions:
|
I think the first option is the easiest; that's what I implemented within the |
Unfortunately, not an elegant way: I tested it with my personal repo GitHub Pages. 😓 |
Update branch
I tried within my local version of the repo, but I can't find a way to generate the documentation. That's because I fail to install './[test]' for Even forcing the install of ruamel + marko (in the Github Action), we still have the issue but for marko only now... see this error Since you interacted a lot with |
Hi @hwwhww 🖖
The goal of this PR is to propose a generator of test documentation for this repo.
This code is a copy/paste (with adaptations) of the
execution-spec-tests
of thegen_test_case_reference.py
` file. It generates markdown file from tests usable for the documentation website.How it works:
It looks for test files at
tests\core\pyspec\eth2spec\test
and generate a documentation with a command line to be used to run the tests.Any docstring in a test will be displayed (there is no docstring for the moment).
In the CD, it will generates a folder
tests
in indocs/
with the below structure:Issue
For the moment, I can't figure how to make the import
from tests.core.eth2spec.test.helpers.constants import ALL_PHASES
without pycharm; maybe we will have to move this code to the tests folder. If you have an idea I will take it.TODO:
docs/tests
within the Github Action)