summaryrefslogtreecommitdiff
path: root/tests/run.sh
diff options
context:
space:
mode:
authorChristopher Warner <cwarner@kernelcode.com>2026-10-10 18:42:38 -0400
committerChristopher Warner <cwarner@kernelcode.com>2026-10-10 18:42:38 -0400
commit78862ba855c6e66cac64a86c25dca6149d8fb2fd (patch)
tree8259c5337ba7ef0e08ea25f720770ac79510573c /tests/run.sh
parent50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3 (diff)
downloadiphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.tar.gz
iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.tar.bz2
iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.tar.xz
iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.zip
test: cover helpers, dry-run CLI, and conventional commits
Extract pure note helpers for unit tests, add ICLOUD_NOTES_DRY_RUN so create and status can be exercised without Chromium, and gate git history on Conventional Commits 1.0.0 subjects. Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh
new file mode 100755
index 0000000..6d845df
--- /dev/null
+++ b/tests/run.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+# Full test suite for iphone-notes.
+set -euo pipefail
+ROOT="$(cd "$(dirname "$0")/.." && pwd)"
+cd "$ROOT"
+
+echo "== helpers (node:test) =="
+node --test tests/helpers.test.mjs
+
+echo "== cli =="
+./tests/cli.test.sh
+
+echo "== conventional commits =="
+./tests/conventional-commits.test.sh
+
+echo "All tests passed."