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

Create integration tests for tuono_lib crate #203

Open
Valerioageno opened this issue Dec 7, 2024 · 2 comments
Open

Create integration tests for tuono_lib crate #203

Valerioageno opened this issue Dec 7, 2024 · 2 comments
Assignees
Labels
rust Requires rust knowledge

Comments

@Valerioageno
Copy link
Member

As the project is growing, we need to enforce reliability of the server we ship with tuono.
As the first step, we need to implement a reusable set of tools for testing the tuono_lib server crate within the tests/ folder.

@mustafasegf
Copy link
Contributor

i wonder what kind of e2e testing are you thinking? i probably can do this but I need more context on how to approach it

@Valerioageno
Copy link
Member Author

I don't have any strong opinion yet...
The idea would be to test that a server built using the tuono_lib structs/functions/macros correctly return the right responses.

I'm wondering what would be the best place in which to put it.
The only idea I got so far is to create a bin crate in which create a fake server using just tuono_lib with a bunch of handlers and then leverage the tests/ folder integration tests.

WDYT? I'm open to other ideas as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Requires rust knowledge
Projects
Status: In progress
Development

No branches or pull requests

2 participants