aau-giraf / web-api

The backend API for GIRAF — a .NET-core project written in C#.
GNU General Public License v3.0
2 stars 5 forks source link

Integration tests change values in the database for localhost or live server #276

Closed manfredhod closed 1 year ago

manfredhod commented 2 years ago

Description

When running the integration tests more than once, the number of failed tests increases from 46 to 100+. The integration tests access the actual database used in production or what is used locally and change it. Since the tests fail, the database is changed, so it doesn't work as intended anymore.

Possible Suggested Solution
Change, so the tests run in an temporary database that will be deleted after the tests have been completed.

This issue will be expanded upon when further information is discovered.