You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An issue that has occurred in the past is the failure of migrations given different target dbs (sqlite, postgres, mysql).
Most of these should be detectable by doing some automated testing.
i.e. Download and launch previous version of wakapi (and somehow exit), run new version of wakapi.
Databases:
postgres
mysql/mariadb
sqlite
Tasks:
Execution of migrations
Execution of tests
The text was updated successfully, but these errors were encountered:
Thanks for bringing this up. The question is what exactly to test here.
We currently have (a few) unit tests and (a bit more) API tests. But they are only run on Linux and only with SQLite database. I think primary goal would be to extend testing in a way that especially the cross-database compatibility is verified with every CI run. Running the API test suite on MySQL and Postgres as well would probably suffice.
However, I don't know about good practices to automate testing with a fully-fledged database server. CI would have to:
Start a temporary MySQL / Postgres server
Import initial test data / fixtures (from an SQL file)
Start Wakapi
Run the newman tests
Tear everything down
Has anyone got any experiences about automating this in CI (specifically GH Actions)?
An issue that has occurred in the past is the failure of migrations given different target dbs (sqlite, postgres, mysql).
Most of these should be detectable by doing some automated testing.
i.e. Download and launch previous version of wakapi (and somehow exit), run new version of wakapi.
Databases:
Tasks:
The text was updated successfully, but these errors were encountered: