aqualinkorg / aqualink-app

Aqualink.org Ocean Monitoring Application
MIT License
35 stars 12 forks source link

Use In-Memory PostgreSQL Instance for Testing #735

Open DanielJDufour opened 2 years ago

DanielJDufour commented 2 years ago

In theory, it might be possible to remove the requirement to run Docker and PostgreSQL for tests, if you use an in-memory PostgreSQL instance pg-mem. The pros would be that it would be easier for developers to get things running and less memory overhead. The cons would be that I don't think it currently supports PostGIS (are we using PostGIS functionality?) and it's not exactly the same as running PostgreSQL/PostGIS.

DanielJDufour commented 2 years ago

update: pg-mem also supports typeorm which is what aqualink api uses: https://github.com/oguimbal/pg-mem/wiki/Libraries-adapters#-typeorm