delphi-hub / delphi-management

The management console for the Delphi platform
https://delphi.cs.uni-paderborn.de/
Apache License 2.0
2 stars 5 forks source link

In Memory Database for Unit Tests #107

Open janniclas opened 5 years ago

janniclas commented 5 years ago

It would be great to have an in memory database to mock the data retrieved by the backend to ease unit testing. There is a relatively new project from angular which allow us to create such in memory database meant for testing( https://github.com/angular/in-memory-web-api ). In the newest version of the angular tutorials this in memory database is used to mock api calls and after a first look it looks really nice. I created a first version of how this might look on this branch https://github.com/delphi-hub/delphi-management/tree/feature/inMemoryTest and successfully mocked the instances and the sysInfo tab, but the work has to be finished for the other endpoints.

janniclas commented 5 years ago

@Naveenkumar27 if you are free, please have a look into this, else unassign yourself so I know I have to look for someone else for this task.

Naveenkumar27 commented 5 years ago

I am going through the links provided for this task. I will get back to you if anything is required.