csc302-spring-2021 / proj-DaTeam

CSC302 course project for DaTeam
https://dateam-frontend.herokuapp.com/
5 stars 2 forks source link

Add (Mock) Database tests to the testing framework #141

Closed DiademShoukralla closed 3 years ago

DiademShoukralla commented 3 years ago

Create a mock implementation of the DB (hash map?) to be used during testing + add a run command for test:db (so not to be used by integration).

Look into extending the database manager and override the methods for testing.

Notes on the overridden functionality: constructor & connection: empty generic create: create a new UID and assign it to object. Save the object into a data structure (hash table?)