dwyl/smart-home-security-system

Clean up after tests

Closed this issue · 1 comments

Our integration tests are working well, but we leave a lot of stuff behind when the tests are finished. This shouldn't be an issue until we reach 1000s of test cycles but it would be good to ensure some test hygiene in future

image

We could create a clear endpoint that we could call after tests that would drop and recreate the db or something similar?

Each test runs with a unique ID so this is not an issue