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
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- Query.search limitation
Since `string` is deprecated I used `varchar`, and now I cant use `Query.contains` , so I setup fulltext index and started using `Query.search` the issue is `Qu...
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...