run-tests: Add harness for integration tests

The `run-tests.sh` script sets up a full environment for the integration
tests.  This includes starting Meilisearch (with a master key to enable
authentication) and generating an ephemeral JWT secret.  After the tests
are run, the environment is cleaned up.

```sh
just test

just unit-tests

just integration-tests
```
This commit is contained in:
2025-04-05 17:00:54 -05:00
parent 76cf57ebe0
commit c227bec62d
2 changed files with 75 additions and 0 deletions

9
Justfile Normal file
View File

@@ -0,0 +1,9 @@
# vim: set et :
integration-tests:
./run-tests.sh --test=integration
unit-tests:
cargo test --lib
test: unit-tests integration-tests