meilisearch-swift icon indicating copy to clipboard operation
meilisearch-swift copied to clipboard

How to make integrations tests more readable?

Open bidoubiwa opened this issue 3 years ago • 0 comments
trafficstars

Integrations tests are made against a running Meilisearch instance. Thus they are asynchronous. Which means that if we need to test a function that requires a setup. A cascade hells starts.

This solution is certainly not the best. How do you think we should go on with this?

Example in this function:

https://github.com/meilisearch/meilisearch-swift/blob/9ed96cb0efb8bdc23e9d26d6ec3c77381ea18091/Tests/MeiliSearchIntegrationTests/DocumentsTests.swift#L62

bidoubiwa avatar Feb 10 '22 14:02 bidoubiwa