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

Reconsider integration test strategy #38

Open
Frixxie opened this issue Oct 1, 2024 · 0 comments
Open

Reconsider integration test strategy #38

Frixxie opened this issue Oct 1, 2024 · 0 comments

Comments

@Frixxie
Copy link
Owner

Frixxie commented Oct 1, 2024

From #36 :

However i am unsure how we should test the endpoints, i had some issues with the address already being allocated.
So for now i have used unique ports for all tests, however this is not maintainable, suggestions would be nice here

Alternatives are: https://docs.rs/axum-test/latest/axum_test/struct.TestServer.html and https://github.com/tokio-rs/axum/blob/main/examples/testing/src/main.rs

Or what i think would be nice: Some kind of fixture that sets up the web-server

@Frixxie Frixxie added this to items Oct 1, 2024
@Frixxie Frixxie converted this from a draft issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant