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

adding integration tests #315

Open
Sonichigo opened this issue Dec 28, 2023 · 4 comments
Open

adding integration tests #315

Sonichigo opened this issue Dec 28, 2023 · 4 comments

Comments

@Sonichigo
Copy link

I was going through the codebase and pr, to see how ways to contribute. I noticed that there is a folder for tests and e2e test. I use a tool called Keploy to for testing and data mocks, i can use it for some integration test ? Can i contirbute in this way?

@houqp
Copy link
Member

houqp commented Dec 29, 2023

I am not familiar with keploy, could you explain what benefits it brings to the table?

@Sonichigo
Copy link
Author

Keploy can record and replay complex, distributed API flows as mocks and stubs, and doesn't require any (generally) code changes. Since the tests are generated by recording the network interactions when the core flows are performed, I assume that we can quickly hit high coverage. If it's going to be higher depends on if we cover flows that are already not covered.

Let's say the user hits the API, and RoadAPI then queries the database, keploy would record the entire flow and then save the input as a test case and the outgoing database or API calls as stubs (in YAML format). Keploy can then spin up a proxy over the recorded stubs or run the entire flow as tests without needing the database or other dependencies to be provisioned.

@Sonichigo
Copy link
Author

hey @houqp can i go ahead?

@houqp
Copy link
Member

houqp commented Mar 11, 2024

I am skeptical that this would work, but I am open to a PoC PR :)

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

2 participants