From 13a86132407dccf2ced25745da4309587384aa54 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 27 Jan 2026 22:22:34 -0600 Subject: feat(testing): add make test target and display report on completion Add 'make test' Makefile target to run full VM integration test suite. Print test report to terminal after generation for immediate visibility. --- Makefile | 8 +++++++- scripts/testing/run-test.sh | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3679c86..bbd5d28 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ DE := $(filter dwm hyprland,$(MAKECMDGOALS)) # Extract DEST from command line for import (e.g., 'make import common' -> DEST=common) DEST := $(filter common dwm hyprland,$(MAKECMDGOALS)) -.PHONY: help stow restow reset unstow import common dwm hyprland +.PHONY: help stow restow reset unstow import test common dwm hyprland # Default target - show help help: @@ -29,6 +29,7 @@ help: @echo " reset Resolve conflicts, keep repo version - requires DE" @echo " unstow Remove all symlinks - requires DE" @echo " import Import new app configs into repo (fzf) - requires dest" + @echo " test Run full VM test suite and report results" @echo "" @echo "Examples:" @echo " make stow dwm # Fresh DWM install (common + dwm)" @@ -37,6 +38,7 @@ help: @echo " make reset hyprland # Resolve conflicts, keep repo version" @echo " make import common # Import configs to common/" @echo " make import hyprland # Import configs to hyprland/" + @echo " make test # Run full VM integration test" @echo "" # Prevent 'common', 'dwm' and 'hyprland' from being treated as file targets @@ -121,3 +123,7 @@ import: check-dest cd $(DOTFILES) && $(STOW) --restow $(DEST); \ echo ""; \ echo "Done. Don't forget to: git add -A && git commit" + +# Test - run full VM integration test suite +test: + @bash scripts/testing/run-test.sh diff --git a/scripts/testing/run-test.sh b/scripts/testing/run-test.sh index a600870..c65961d 100755 --- a/scripts/testing/run-test.sh +++ b/scripts/testing/run-test.sh @@ -319,6 +319,10 @@ EOFREPORT info "Test report saved: $REPORT_FILE" +# Display report to terminal +echo "" +cat "$REPORT_FILE" + # Cleanup or keep VM section "Cleanup" -- cgit v1.2.3