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

Test backend graph calculation logic with smart contract tests #2

Open
kelemeno opened this issue Feb 23, 2023 · 1 comment
Open

Test backend graph calculation logic with smart contract tests #2

kelemeno opened this issue Feb 23, 2023 · 1 comment

Comments

@kelemeno
Copy link
Owner

We can do this, as we test the backend by requiring the SC. So if we run the SC tests as a script, we can also test the backend.

@kelemeno
Copy link
Owner Author

*re-querying .

Expanding on this: we test the backend graph management by calculating the new graph, and requerying the SC, and comparing the results. This calculation, requerying happens after the SC processes some txs. We can run complicated, or multiple txs. We can do this simply, by running scripts. What scripts to run? Well the tests can be run as scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant