From 5ccc41b104663c1cb819553e7f77ddcece2a8bbc Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Mon, 12 Jan 2026 20:13:14 -0500 Subject: [PATCH] feat: add test target to Makefile. Added make test directive that runs tests without benchmarks. Updated help text to include the new test target. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc7e5e5..1d52d28 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BINARY_NAME=lambda TEST=simple -.PHONY: help build run profile explain graph docs bench clean +.PHONY: help build run profile explain graph docs test bench clean .DEFAULT_GOAL := help .SILENT: @@ -13,6 +13,7 @@ help: echo " explain - Build and run with explanation mode and profiling" echo " graph - Generate and open CPU profile visualization" echo " docs - Start local godoc server on port 6060" + echo " test - Run tests for all samples" echo " bench - Run benchmarks for all samples" echo " clean - Remove all build artifacts" @@ -38,6 +39,9 @@ docs: echo ">>> View at 'http://localhost:6060/pkg/git.maximhutz.com/max/lambda/'" go run golang.org/x/tools/cmd/godoc@latest -http=:6060 +test: + go test -v ./cmd/lambda + bench: go test -bench=. -benchtime=10x -cpu=4 ./cmd/lambda