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

Testing against populated data

Open ppamorim opened this issue 5 years ago • 1 comments

Summary

When running cargo test I noticed that I need to have a Meilisearch instance pre-configured before hand. This instance generally is empty and the tests are not running against a populated instance, no assert is done regarding the data that the SDK returns.

Possible solution

I would suggest to add a pre-setup configuration for the command cargo test, this is possible with the runner cargo-make: https://sagiegurari.github.io/cargo-make/

ppamorim avatar Oct 07 '20 09:10 ppamorim

I know that tests are not very robust for now. We are speaking a bit about this in #29. There will be a PR that will greatly improve the old tests. You can see the proposed solution in the new tests of #46.

Mubelotix avatar Oct 07 '20 15:10 Mubelotix

fixed by https://github.com/meilisearch/meilisearch-rust/issues/41

bidoubiwa avatar Sep 25 '23 13:09 bidoubiwa