From a4ddd1750fd397eb6bb3aa481d25cb9e056e712f Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 2 May 2024 08:59:18 -0700 Subject: [PATCH] Update test instructions in readme. --- Makefile | 3 --- README.md | 10 +++++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 96e8579..6851456 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,11 @@ EMACS ?= emacs TESTS ?= test/fennel-mode-test.el -ALL ?= $(TESTS) test/fennel-proto-repl-test.el test/ob-fennel-test.el LUA_MODE ?= $(HOME)/src/lua-mode/lua-mode.el test: clean $(EMACS) -Q -batch -L . -l $(LUA_MODE) -l $(TESTS) \ -f ert-run-tests-batch-and-exit -testall: $(MAKE) test TESTS=$(ALL) - clean: ; rm -f *.elc .PHONY: test testall clean diff --git a/README.md b/README.md index 3dcd4d4..f4990b0 100644 --- a/README.md +++ b/README.md @@ -163,15 +163,19 @@ Please byte-compile to check for warnings. ### Testing -This package has tests stored in the `tests` directory. When +This package has tests stored in the `test/` directory. When developing new functionality consider writing a test for it. You can run the tests with `make`. By default this runs the tests for -`fennel-mode` alone, but `make testall` will run them for -`fennel-proto-repl` and `ob-fennel` as well. +`fennel-mode` alone; for `fennel-proto-repl` and `ob-fennel` you can +override the `TESTS` argument. Use `make EMACS=emacs29` to test against a different Emacs version. +During development it may be more convenient to use `M-x +ert-run-tests-interactively` but try to make sure the tests pass with +a fresh Emacs using `make` before committing. + ## Copyright Copyright © 2018-2024 Phil Hagelberg and contributors -- 2.45.2