branch: externals/ellama
commit c668e780048c3b6b7e482b36b0662a3c918f39d5
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    Add test-detailed target
    
    Added a new `test-detailed` make target that runs unit tests with detailed
    output including backtraces to help diagnose test failures.
---
 AGENTS.md |  1 +
 Makefile  | 16 +++++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/AGENTS.md b/AGENTS.md
index 40a8c6136e..e676d5f356 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -4,6 +4,7 @@
 
 1. **Build**: `make build`
 2. **Run unit tests** (ERT): `make test`
+               If it fails, run `make test-detailed` to see fail reasons.
 3. **Check native compilation warnings**: `make check-compile-warnings`
 4. **Format Elisp files**: `make format-elisp`
 5. **Export manual**: `make manual`
diff --git a/Makefile b/Makefile
index 13f03f9efa..c79038385d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Makefile for ellama project
 
-.PHONY: build test check-compile-warnings manual format-elisp refill-news
+.PHONY: build test test-detailed check-compile-warnings manual format-elisp 
refill-news
 
 # This order is based on the packages dependency graph.
 ELLAMA_COMPILE_ORDER = \
@@ -29,6 +29,20 @@ test:
                -l tests/test-ellama-community-prompts.el \
                --eval "(ert t)"
 
+test-detailed:
+       emacs -batch --eval "(package-initialize)" \
+               -l ellama.el \
+               -l tests/test-ellama.el \
+               -l tests/test-ellama-context.el \
+               -l tests/test-ellama-tools.el \
+               -l tests/test-ellama-skills.el \
+               -l tests/test-ellama-transient.el \
+               -l tests/test-ellama-blueprint.el \
+               -l tests/test-ellama-manual.el \
+               -l tests/test-ellama-community-prompts.el \
+               --eval "(setq ert-batch-backtrace-right-margin 200)" \
+               --eval "(ert-run-tests-batch-and-exit t)"
+
 check-compile-warnings:
        emacs --batch --eval "(package-initialize)" --eval "(setq 
native-comp-eln-load-path (list default-directory))" -L . -f 
batch-native-compile $(ELLAMA_COMPILE_ORDER)
 

Reply via email to