@@ -185,8 +185,8 @@ test-template-with-components: ## Test template with scheduler component include
185185
186186clean-test-projects : # # Remove all generated test project directories
187187 @echo " 🧹 Cleaning up test projects..."
188- @chmod -R +w ../test-basic-stack ../test-component-stack ../test-worker-stack ../test-full-stack 2> /dev/null || true
189- @rm -rf ../test-basic-stack ../test-component-stack ../test-worker-stack ../test-full-stack 2> /dev/null || true
188+ @chmod -R +w ../test-basic-stack ../test-component-stack ../test-worker-stack ../test-database-stack ../test- full-stack 2> /dev/null || true
189+ @rm -rf ../test-basic-stack ../test-component-stack ../test-worker-stack ../test-database-stack ../test- full-stack 2> /dev/null || true
190190 @echo " ✅ Test projects cleaned up"
191191
192192# ============================================================================
@@ -230,6 +230,22 @@ test-stacks-full: ## Full stack matrix testing pipeline (comprehensive but slow)
230230 @echo " All component combinations can generate, build, and pass quality checks"
231231
232232# Enhanced template testing with specific component combinations
233+ test-template-database : # # Test template with database component
234+ @echo " 🗄️ Testing database component template..."
235+ @chmod -R +w ../test-database-stack 2> /dev/null || true
236+ @rm -rf ../test-database-stack
237+ @env -u VIRTUAL_ENV uv run aegis init test-database-stack --components database --output-dir .. --no-interactive --force --yes
238+ @echo " 📦 Installing dependencies and CLI..."
239+ @cd ../test-database-stack && chmod -R +w .venv 2> /dev/null || true && rm -rf .venv && env -u VIRTUAL_ENV uv sync --extra dev --extra docs
240+ @cd ../test-database-stack && env -u VIRTUAL_ENV uv pip install -e .
241+ @echo " 🔍 Running validation checks..."
242+ @cd ../test-database-stack && env -u VIRTUAL_ENV make check
243+ @echo " 🧪 Testing CLI script installation..."
244+ @cd ../test-database-stack && env -u VIRTUAL_ENV uv run test-database-stack --help > /dev/null && echo " ✅ CLI script 'test-database-stack --help' works" || echo " ⚠️ CLI script test failed"
245+ @cd ../test-database-stack && env -u VIRTUAL_ENV uv run test-database-stack health status --help > /dev/null && echo " ✅ Health commands available" || echo " ⚠️ Health command test failed"
246+ @echo " ✅ Database template test completed successfully!"
247+ @echo " Test project available in ../test-database-stack/"
248+
233249test-template-worker : # # Test template with worker component
234250 @echo " 🔧 Testing worker component template..."
235251 @chmod -R +w ../test-worker-stack 2> /dev/null || true
@@ -246,11 +262,11 @@ test-template-worker: ## Test template with worker component
246262 @echo " ✅ Worker template test completed successfully!"
247263 @echo " Test project available in ../test-worker-stack/"
248264
249- test-template-full : # # Test template with all components (worker + scheduler)
265+ test-template-full : # # Test template with all components (worker + scheduler + database )
250266 @echo " 🌟 Testing full component template..."
251267 @chmod -R +w ../test-full-stack 2> /dev/null || true
252268 @rm -rf ../test-full-stack
253- @env -u VIRTUAL_ENV uv run aegis init test-full-stack --components worker,scheduler --output-dir .. --no-interactive --force --yes
269+ @env -u VIRTUAL_ENV uv run aegis init test-full-stack --components worker,scheduler,database --output-dir .. --no-interactive --force --yes
254270 @echo " 📦 Installing dependencies and CLI..."
255271 @cd ../test-full-stack && chmod -R +w .venv 2> /dev/null || true && rm -rf .venv && env -u VIRTUAL_ENV uv sync --extra dev --extra docs
256272 @cd ../test-full-stack && env -u VIRTUAL_ENV uv pip install -e .
@@ -261,7 +277,7 @@ test-template-full: ## Test template with all components (worker + scheduler)
261277 @cd ../test-full-stack && env -u VIRTUAL_ENV uv run test-full-stack health status --help > /dev/null && echo " ✅ Health commands available" || echo " ⚠️ Health command test failed"
262278 @echo " ✅ Full stack template test completed successfully!"
263279 @echo " Test project available in ../test-full-stack/"
264- @echo " Includes: backend, frontend, worker queues, scheduler, Redis"
280+ @echo " Includes: backend, frontend, worker queues, scheduler, Redis, database "
265281
266282# Quick component testing for development workflow
267283test-component-quick : # # Quick test of specific component (set COMPONENT=worker|scheduler)
@@ -277,7 +293,7 @@ endif
277293 @echo "✅ $(COMPONENT) component generated successfully in ../test-$(COMPONENT)-quick/"
278294 @echo " Run 'cd ../test-$(COMPONENT)-quick && make check' to validate"
279295
280- .PHONY : test lint fix format typecheck check install clean docs-serve docs-build cli-test redis-start redis-stop redis-cli redis-logs redis-stats redis-reset redis-queues redis-workers redis-failed redis-monitor redis-info test-template-quick test-template test-template-with-components test-template-worker test-template-full test-component-quick test-stacks test-stacks-build test-stacks-runtime test-stacks-full clean-test-projects help
296+ .PHONY : test lint fix format typecheck check install clean docs-serve docs-build cli-test redis-start redis-stop redis-cli redis-logs redis-stats redis-reset redis-queues redis-workers redis-failed redis-monitor redis-info test-template-quick test-template test-template-with-components test-template-database test-template- worker test-template-full test-component-quick test-stacks test-stacks-build test-stacks-runtime test-stacks-full clean-test-projects help
281297
282298# Default target
283299.DEFAULT_GOAL := help
0 commit comments