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

Make testing execution operations, messages and queries less verbose #2982

Open
jvff opened this issue Nov 28, 2024 · 0 comments
Open

Make testing execution operations, messages and queries less verbose #2982

jvff opened this issue Nov 28, 2024 · 0 comments

Comments

@jvff
Copy link
Contributor

jvff commented Nov 28, 2024

Motivation

Executing operations, messages and queries in tests requires some setup that ends up being repeated in many tests. This reduces readability, since most of that is boilerplate code.

Proposal

Add some test helper types, functions or methods to simplify the code in the tests.

One idea might be to use a builder pattern:

execution_state_view
    .execute_test_operation(app_id, operation)
    .with_authenticated_signer(owner)
    .await?;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant