Skip to content

use REST API mocks in tests #11

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

Closed
2bndy5 opened this issue Aug 17, 2024 · 2 comments · Fixed by #21
Closed

use REST API mocks in tests #11

2bndy5 opened this issue Aug 17, 2024 · 2 comments · Fixed by #21
Assignees

Comments

@2bndy5
Copy link
Collaborator

2bndy5 commented Aug 17, 2024

Currently, the testing of our REST API calls is lacking because I have not resolved #9

This is a reminder to use a mock library when writing the new tests. The mockito library seems the most popular and well maintained.

@2bndy5
Copy link
Collaborator Author

2bndy5 commented Aug 17, 2024

This might be better implemented in integration tests rather than unit tests. In rust, unit tests are written in private (conditionally compiled) code blocks within the src/ folder. Integration tests are binary executables located in the tests folder.

@2bndy5
Copy link
Collaborator Author

2bndy5 commented Aug 23, 2024

I'm working on this now and found that REST API pagination was not properly implemented. I fixed this locally, but #18 still needs to be addressed as well.

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

Successfully merging a pull request may close this issue.

1 participant