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

✨(testinit): add support for parametrized tests and different test types #927

Open
Tracked by #973
danceratopz opened this issue Oct 30, 2024 · 0 comments
Open
Tracked by #973
Labels
scope:gentest Scope: gentest CLI type:feat type: Feature

Comments

@danceratopz
Copy link
Member

Based on #926, we could add an further options to add:
0. All supported test formats: state_test/state_test_only, blockchain_test/blockchain_test_engine, eof_test.

  1. Basic test parameterization to the generated test. For example:
@pytest.mark.parametrize(
    ("param_1", "param_2"),
    (
        pytest.param(param_1, param_2, id="test_id_1"),
        pytest.param(param_1, param_2, id="test_id_2"),
    ),
)
def <test_module_name>(
    state_test: StateTestFiller,
    pre: Alloc,
    param_1,
    param_2
):
pass

Typehints for the parameters could be tricky )) But it's ok if new users don't add them - maintainers can help later in the PR.
2. Optional creation of a transition test for a blockchain_test.
3. Exception tests.

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:feat type: Feature
Projects
None yet
Development

No branches or pull requests

1 participant