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

Improve api functional tests performance #760

Open
ygrishajev opened this issue Jan 30, 2025 · 1 comment
Open

Improve api functional tests performance #760

ygrishajev opened this issue Jan 30, 2025 · 1 comment

Comments

@ygrishajev
Copy link
Contributor

Currently we have to run tests sequentially utilising jest's --runInBand option. This is to avoid DB data checks and master wallet sequence mismatch. It would be great to address these issues and run tests in parallel. This way we'd save our own time running tests locally, consume less of CI resources and reduce PR checks time.

DB acceptance criteria:

  • create new dbs for every test run
  • override relevant env vars
  • drop dbs after finish

Master wallet acceptance criteria:

  • generate a new wallet for a test run
  • send tokens to the every wallet created
  • override relevant env vars
@ygrishajev ygrishajev added this to the Automated Testing + CI milestone Jan 30, 2025
@ygrishajev
Copy link
Contributor Author

As DB part is pretty trivial, wallet part might need some thinking. Some points I'm concluding so far:

  • It might be a good idea to store wallets into some json file checked into git, to avoid wallet creation on every run
  • The above also would reduce frequency of funding if implemented properly
  • Every run should lock the cached wallet

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