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

Add smoke tests for subgraph examples #708

Closed
Kalina-Todorova opened this issue Nov 23, 2022 · 0 comments · Fixed by #764
Closed

Add smoke tests for subgraph examples #708

Kalina-Todorova opened this issue Nov 23, 2022 · 0 comments · Fixed by #764
Labels
enhancement New feature or request limechain
Milestone

Comments

@Kalina-Todorova
Copy link

Kalina-Todorova commented Nov 23, 2022

Problem

As a developer I can run a single command (such as hardhat test) in order to verify that the basic (ERC20, ERC721, Gravatar) examples run correctly against local-node, previewnet, testnet or mainnet.

The command would ideally execute the following:

  1. start up graph node and local-node and verify that they have are running successfully
  2. pass all required params to deploy script to avoid manual passing through cli
  3. execute interaction scripts
  4. handle awaits
  5. verify that the synced values reflect what is expected

Solution

The initial tests should include the following scenarios:

  1. Can index old events:
  • Interact with contracts, emit events
  • Deploy subgraph
  • Wait for indexing
  • Send GraphQL queries to the subgraph endpoint to check if data is correct
  1. Can index new events:
  • Interact with contracts and emit events
  • Wait for indexing
  • Send GraphQL queries and check if returned data is correct

Alternatives

No response

@Kalina-Todorova Kalina-Todorova added enhancement New feature or request limechain labels Nov 23, 2022
@Nana-EC Nana-EC added this to the 0.14.0 milestone Nov 24, 2022
@Nana-EC Nana-EC moved this to Sprint BackLog in Smart Contract Sprint Board Nov 28, 2022
Repository owner moved this from Sprint BackLog to Done in Smart Contract Sprint Board Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request limechain
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants