summaryrefslogtreecommitdiff
path: root/tools/test
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-05-27 01:22:20 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-05-27 01:22:20 -0400
commit586d3a267f14f730c7703b6cf23ea83b8d17790d (patch)
tree2cb5d876f38d86ceb392040ced61c7ab6006d7f8 /tools/test
parent79d3598282fd573931e7cb14e4d3e54aad7c943c (diff)
Consolidate testing steps into `tools/test`.
I've opted to run with `--coverage` to ensure that we continue exercising coverage support. Hat tip to @wlonk for holding me accountable on this - I had thought coverage was broken, but I was holding it wrong.
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/test b/tools/test
new file mode 100755
index 0000000..06e2159
--- /dev/null
+++ b/tools/test
@@ -0,0 +1,13 @@
+#!/bin/bash -e
+
+## tools/test
+##
+## Run the full test suite.
+##
+## Best run as `tools/test` even if you have the `tools` directory in your
+## $PATH, due to naming collisions with the `test` shell builtin or `/bin/test`.
+
+cd "$(dirname "$0")/.."
+
+npx vitest --run --coverage
+cargo test