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

Research testing framework #7

Open
mirdaki opened this issue Sep 22, 2018 · 1 comment
Open

Research testing framework #7

mirdaki opened this issue Sep 22, 2018 · 1 comment
Labels
help wanted Extra attention is needed meta Need to talk about the project itself question Further information is requested
Milestone

Comments

@mirdaki
Copy link
Member

mirdaki commented Sep 22, 2018

We will need to write unit test to make sure the framework is working and help prevent regressions. They will need to support mocking REST calls and database calls (so we can test without a database). Feel free to do some research.

Could we get a discussion going about preferences, what works best with Rocket, etc?

@mirdaki mirdaki added help wanted Extra attention is needed question Further information is requested meta Need to talk about the project itself labels Sep 22, 2018
@mirdaki mirdaki added this to the 1.0.0 milestone Sep 22, 2018
@mirdaki
Copy link
Member Author

mirdaki commented Apr 12, 2019

Here is what I have from some quick research. We should definitely switch to using dependency injection (passing the database connection as an argument, instead of connecting to it inside the function), to keep it cleaner and easier to test (using mocking).

Rust libraries

Examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed meta Need to talk about the project itself question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant