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

EPIC: Integration test framework #14145

Closed
29 of 42 tasks
tac0turtle opened this issue Dec 4, 2022 · 3 comments
Closed
29 of 42 tasks

EPIC: Integration test framework #14145

tac0turtle opened this issue Dec 4, 2022 · 3 comments
Assignees
Labels

Comments

@tac0turtle
Copy link
Member

tac0turtle commented Dec 4, 2022

Summary

All forms of testing it important when developing an application. Secondly, having a testing framework for different levels of testing (unit, integration, e2e) provides a seamless way for users to write clean and reliable tests.

Currently, there is not an integration framework available.

Problem Definition

To write an integration test suite for a module, users must build an application or use their app.go for testing. This creates a test environment that is in-between an e2e test and integration test. Secondly, the e2e tests are not well-defined and require tendermint on top of modules that are not needed in a modules testing (staking, auth, bank, params, consensus, etc..)

Work Breakdown

Design and implement an integration framework for applications that only requires the module and its dependencies to be included in the dependency graph. This could be something as simple as a few routers for queries, messages, and anything else that is needed, but not an entire application that requires things like staking if it's not required.

Secondly, this integration framework could later be used for benchmarking specific logic of a module without the need to spin up an application.

Preliminary phase

Phase 1

Phase 2

@tac0turtle
Copy link
Member Author

double checking on this epic, is it up to date with the latest changes?

@likhita-809
Copy link
Contributor

likhita-809 commented Jun 28, 2023

yes, for the remaining modules either tests are not verified for duplication / partially deduplicated tests.
So we just need to verify duplicate tests btw integration, CLI and e2e tests in the remaining modules.

@tac0turtle
Copy link
Member Author

closing this and opening a new epic around dedupication of e2e/cli/integration tests

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

No branches or pull requests

3 participants