issues
search
LukeBrandon
/
fluke
5
stars
0
forks
source link
feat: Refactor for app/db integration and unit tests
#40
Closed
FlynnOConnell
closed
1 year ago
FlynnOConnell
commented
1 year ago
Adding Tests :tada:
[x] Refactor main.rs: split into functions that return a db
pool
and axum
app
instance to be used in
main
and
tests
.
[x] Spin up a separate instance of the app and database that is cleaned on each test
[ ] Run these tests in a workflow utilizing
sqlx::test
and offline mode
[ ] Create workflow to automate database and app instances
Notes
Do we want each query to be separate, or sequential i.e. create and login user -> create message -> channel all in 1 test, or separate
The database needs to be setup via docker so that it can be run via a workflow
Links
CI to load database schema and sample data, 3x per day
Adding Tests :tada:
pool
and axumapp
instance to be used inmain
andtests
.sqlx::test
and offline modeNotes
Links