Skip to content

Conversation

@haydenhoang
Copy link
Contributor

Change Summary

#55

cargo test-clean -- --all-features

This is an alias command which will run a script to clean up your Typesense server after the tests finish. You can pass any arguments of cargo test after the --.

To run test for wasm:

cargo test-clean --wasm

PR Checklist

@RoDmitry
Copy link
Collaborator

But it will remove all of the collections I have in Typesense. I have other collections there, which I don't want removed.
I thought that you would add delete call at the end of each test.

@haydenhoang
Copy link
Contributor Author

Use a dedicated Typesense instance for testing only.

We don't really need to delete the collections because the tests already use id for collection name and in CI/CD, data is wiped after each run. Implementing it would just make the tests more complex and slower.

@haydenhoang
Copy link
Contributor Author

I have updated the script to only delete collection with the test_ collection name prefix

@RoDmitry RoDmitry self-requested a review October 23, 2025 12:08
Copy link
Collaborator

@RoDmitry RoDmitry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usable 😊. Thank you!

@RoDmitry RoDmitry merged commit f56ca80 into typesense:main Oct 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants