diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-09 15:35:13 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-09 15:35:13 -0600 |
| commit | 05e9b238893603b5090abf1dd3c7d1d10857c573 (patch) | |
| tree | a7f4083a84cb77a5b62d9b9b47c1548863ba27ed | |
| parent | c64357f7fa0751beaa30565babec62df5232766a (diff) | |
test: Exclude slow tests from batch executions
Update the test commands to skip tests tagged with :slow during
batch execution, improving testing efficiency.
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,7 +97,7 @@ test-unit: @failed=0; \ for test in $(UNIT_TESTS); do \ echo " Testing $$test..."; \ - $(EMACS_TEST) -l ert -l $$test -f ert-run-tests-batch-and-exit || failed=$$((failed + 1)); \ + $(EMACS_TEST) -l ert -l $$test --eval "(ert-run-tests-batch-and-exit '(not (tag :slow)))" || failed=$$((failed + 1)); \ done; \ if [ $$failed -eq 0 ]; then \ echo "$(COLOR_GREEN)✓ All unit tests passed$(COLOR_RESET)"; \ @@ -115,7 +115,7 @@ test-integration: @failed=0; \ for test in $(INTEGRATION_TESTS); do \ echo " Testing $$test..."; \ - $(EMACS_TEST) -l ert -l $$test -f ert-run-tests-batch-and-exit || failed=$$((failed + 1)); \ + $(EMACS_TEST) -l ert -l $$test --eval "(ert-run-tests-batch-and-exit '(not (tag :slow)))" || failed=$$((failed + 1)); \ done; \ if [ $$failed -eq 0 ]; then \ echo "$(COLOR_GREEN)✓ All integration tests passed$(COLOR_RESET)"; \ @@ -131,7 +131,7 @@ ifndef FILE @exit 1 endif @echo "$(COLOR_BLUE)Running tests in $(FILE)...$(COLOR_RESET)" - @$(EMACS_TEST) -l ert -l $(TEST_DIR)/$(FILE) -f ert-run-tests-batch-and-exit + @$(EMACS_TEST) -l ert -l $(TEST_DIR)/$(FILE) --eval "(ert-run-tests-batch-and-exit '(not (tag :slow)))" @echo "$(COLOR_GREEN)✓ Tests in $(FILE) complete$(COLOR_RESET)" test-name: |
