I'm running an appwrite instance using the docker installation and for database communication I use Java which works fine. For my software I want to write integration tests.
Usually with other databases I create a new container in Java using testcontainers and then I execute the tests. So to be clear what's happening is I run the tests, at the beginning a new container for the database is created and the tests use this container for the data to test. How can I implement integration tests for the appwrite database? I don't want to mess with the production database when testing.
Appreciate any help
You can do the same: spin up an Appwrite container. We do that in our integration tests.
Perfect thank you. Is there an example how you create a container for the tests on GitHub? I couldn’t find it
You could use the docker files here: https://appwrite.io/docs/advanced/self-hosting#manual
Recommended threads
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...