Research testing framework
Opened this issue · 1 comments
mirdaki commented
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 commented
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