aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-08 22:09:13 -0500
committerCraig Jennings <c@cjennings.net>2026-06-08 22:09:13 -0500
commit27e4b0b350e62d4d66430b2ec3d1483d49bf9f46 (patch)
treeff954d6ac96ff97d002f5bd2818744b4c90853d7 /Makefile
parentd098a310a437c87ead882d6cd48a788aacba9ee5 (diff)
downloaddotemacs-27e4b0b350e62d4d66430b2ec3d1483d49bf9f46.tar.gz
dotemacs-27e4b0b350e62d4d66430b2ec3d1483d49bf9f46.zip
test(theme-studio): add a one-command test runner and make target
The browser hash gates were run by hand through headless Chrome, so a picker-JS regression only surfaced if someone remembered to run them. run-tests.sh now drives the whole pyramid in one command: regenerate the page, the Python templating tests, the Node unit tests plus inline-integrity, a syntax check of the spliced page script, and the six browser hash gates. It exits non-zero on any failure, and make theme-studio-test calls it. The browser gates need a Chromium-family browser. When none is found they report SKIPPED rather than passing, so a machine without Chrome can't turn the gates silently green.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7182f6170..a1f403e8b 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ EMACS_TEST = $(EMACS_BATCH) -L $(TEST_DIR) -L $(MODULE_DIR)
# No colors - using plain text symbols instead
.PHONY: help targets test test-all test-unit test-integration test-file test-name \
- test-bash benchmark coverage coverage-summary coverage-clean \
+ test-bash theme-studio-test benchmark coverage coverage-summary coverage-clean \
validate-parens validate-modules compile compile-file lint profile \
clean clean-compiled clean-tests reset
@@ -66,6 +66,7 @@ help:
@echo " make test-file FILE=<filename> - Run specific test file"
@echo " make test-name TEST=<pattern> - Run tests matching pattern"
@echo " make test-bash - Run the bats shell-script tests ($(words $(BASH_TESTS)) files)"
+ @echo " make theme-studio-test - Run the theme-studio tool tests (Python + Node + browser)"
@echo " make benchmark - Run performance benchmarks (:perf-tagged)"
@echo ""
@echo " Coverage:"
@@ -121,6 +122,9 @@ test-bash:
@echo "[i] Running bats shell-script tests ($(words $(BASH_TESTS)) files)..."
@bats $(BASH_TESTS)
+theme-studio-test:
+ @scripts/theme-studio/run-tests.sh
+
BANNER = ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Run the .el test files in $(1), each in its own Emacs, with :slow and :perf