Skip to content

In Memory Database for Unit Tests #107

Open
@janniclas

Description

@janniclas

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions