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

🔀(gentest): use jinja2 templates to structure python output #863

Closed
Tracked by #866
danceratopz opened this issue Oct 2, 2024 · 1 comment · Fixed by #900
Closed
Tracked by #866

🔀(gentest): use jinja2 templates to structure python output #863

danceratopz opened this issue Oct 2, 2024 · 1 comment · Fixed by #900
Labels
scope:gentest Scope: gentest CLI type:refactor Type: Refactor

Comments

@danceratopz
Copy link
Member

Jinja2 is a very powerful templating library that we started using in the doc flow for the generated "Test Case Reference" output pages, see #801 and ./docs/templates.

I think that .py.j2 templates could be an excellent way to write the output from gentest. This will be particularly helpful, when/if we create blockchain_tests with an arbitrary number of blocks, each containing an arbitrary number of transactions. We could have a template for a state_test and one for blockchain_test. Jinja2 also allows base templates.

@raxhvl
Copy link
Contributor

raxhvl commented Oct 14, 2024

Hey @danceratopz I'm starting with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:gentest Scope: gentest CLI type:refactor Type: Refactor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants