CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.48k stars 113 forks source link

How to run the integration tests locally #714

Closed tenax66 closed 3 weeks ago

tenax66 commented 3 weeks ago

Hi, Iā€™m new here. Thank you for the amazing software!

I have a question about the integration tests. In CONTRIBUTING.md, it says:

To run the test suite, from the pagefind directory you can run cargo test for unit tests, or the ./test.sh script for the integration suite.

However, due to the change of test tool from humane to toolproof, /test.sh script doesn't seem to be working now.

How can I run the tests locally? Is running ./test_ci.sh locally the expected way?

bglw commented 3 weeks ago

Hi @tenax66 šŸ‘‹

Thanks for pointing that out! I have updated the contributing guide to match the latest setup.

I have also added a ./test_interactive.sh script which is the best avenue to run tests locally.

Let me know if you have any other questions! šŸ™‚