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

feat: Add e2e testing #34

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

feat: Add e2e testing #34

wants to merge 12 commits into from

Conversation

mj52951
Copy link
Collaborator

@mj52951 mj52951 commented Dec 13, 2024

Added e2e tests for the whole indexing functionality. Also set up the testing environment in docker-compose.yml.

closes #10

mpetrun5
mpetrun5 previously approved these changes Dec 13, 2024
Copy link
Contributor

@mpetrun5 mpetrun5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a Github action for this.

@@ -0,0 +1,7 @@
DB_NAME=squid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add .env to gitignore

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.env is used for interpolation in docker-compose.yml so it is needed. Same as ./envs files are needed inside containers.

import { Transfer, Deposit, Execution, TransferStatus } from "../../src/model";
import { Network, ResourceType } from "@buildwithsygma/core";

const NUMBER_OF_TRANSFERS = 31;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is missmatch between NUMBER_OF_TRANSFERS and NUMBER_OF_SUBSTRATE_DEPOSITS + NUMBER_OF_FUNGIBLE_DEPOSITS + NUMBER_OF_PERMISSIONLESS_DEPOSITS + NUMBER_OF_NFT_DEPOSITS

Copy link
Collaborator Author

@mj52951 mj52951 Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Substrate deposit is both a "Substrate deposit" and a "fungible deposit" so it shouldn't be counted twice in that equation.

@mj52951 mj52951 requested a review from tcar121293 December 18, 2024 08:22
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

Successfully merging this pull request may close these issues.

feat: Add E2E tests
3 participants