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

Add EndToEnd tests for all endpoints #32

Open
MV-GH opened this issue Jan 30, 2024 · 1 comment
Open

Add EndToEnd tests for all endpoints #32

MV-GH opened this issue Jan 30, 2024 · 1 comment
Labels
1.0.0 Required to reach 1.0.0 enhancement New feature or request help wanted Extra attention is needed

Comments

@MV-GH
Copy link
Owner

MV-GH commented Jan 30, 2024

EndToEndTest success is defined as simply having a 2XX returned for a endpoint. We test serialization.

The only way we can reliably do this is by having a local docker instance running of a LemmyServer using TestContainers. The db should be preseeded with some data.

Then add a test for each endpoint

These tests should only be required to executed before the publishing. On demand otherwise.

@MV-GH MV-GH added enhancement New feature or request help wanted Extra attention is needed labels Jan 30, 2024
@dessalines
Copy link
Contributor

You could look at some of our end-to-end tests here, but they're mostly to test business-logic and federated operations. It might be a little overkill to replicate that with all its seed data here.

@MV-GH MV-GH added the 1.0.0 Required to reach 1.0.0 label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0.0 Required to reach 1.0.0 enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants