|
1 | 1 |
|
2 | 2 | .PHONY: help install tidy build run test test-strict test-fast lint lint-strict lint-fast fmt fmt-strict fmt-fast check check-fast sec sec-strict sec-fast artifact-scan \ |
3 | | - backend web backend-targeted fast strict build-local latest dev \ |
| 3 | + backend web backend-targeted backend-iac backend-software fast strict build-local latest dev \ |
4 | 4 | image start stop restart logs stats delete rm kill-port redo \ |
5 | 5 | openapi-gen openapi-merge openapi-check openapi-sync |
6 | 6 |
|
|
51 | 51 | @echo " make test backend Run strict backend Go tests from backend/" |
52 | 52 | @echo " make test backend fast Run faster backend Go tests from backend/" |
53 | 53 | @echo " make test web Run web tests from web/" |
54 | | - @echo " make test backend-targeted Run backend routes/secrets/migrations test set" |
| 54 | + @echo " make test backend-targeted Run the legacy mixed routes/secrets/migrations integration bundle" |
| 55 | + @echo " make test backend-iac Run focused IaC domain + route regression tests" |
| 56 | + @echo " make test backend-software Run focused software catalog/executor regression tests" |
55 | 57 | @echo " make test e2e Run the full end-to-end suite entrypoint" |
56 | 58 | @echo " make test e2e fast Run the smoke E2E suite" |
57 | 59 | @echo " make lint Run strict linters (golangci-lint, actionlint, eslint, web typecheck)" |
@@ -310,9 +312,17 @@ else ifeq ($(QUALITY_SCOPE),web) |
310 | 312 | rm -f "$$log_file" |
311 | 313 | @echo "✓ Web tests completed" |
312 | 314 | else ifeq ($(QUALITY_SCOPE),backend-targeted) |
313 | | - @echo "Running targeted backend tests..." |
| 315 | + @echo "Running legacy mixed backend integration bundle..." |
314 | 316 | @cd backend && go test ./domain/routes ./domain/secrets ./infra/migrations -v |
315 | | - @echo "✓ Targeted backend tests completed" |
| 317 | + @echo "✓ Legacy mixed backend integration bundle completed" |
| 318 | +else ifeq ($(QUALITY_SCOPE),backend-iac) |
| 319 | + @echo "Running focused IaC backend tests..." |
| 320 | + @cd backend && go test ./domain/iac ./domain/routes -run '^(TestService|TestIACRoutes)' -v |
| 321 | + @echo "✓ Focused IaC backend tests completed" |
| 322 | +else ifeq ($(QUALITY_SCOPE),backend-software) |
| 323 | + @echo "Running focused software backend tests..." |
| 324 | + @cd backend && go test ./domain/software/catalog ./domain/software/executor -run '^(TestLoadServerCatalogComponentKeys|TestServerCatalogCanResolveAllEntries|TestResolveTemplateSubstitutesScriptEnv|TestServerCatalogCapabilityComponentMapConsistency|TestBuildManagedScriptCommand_EmbeddedScript|TestBuildManagedScriptCommand_EmbeddedScriptWithEnv)$$' -v |
| 325 | + @echo "✓ Focused software backend tests completed" |
316 | 326 | else ifeq ($(QUALITY_SCOPE),e2e) |
317 | 327 | ifeq ($(QUALITY_MODE),fast) |
318 | 328 | @echo "Running E2E smoke suite..." |
@@ -1007,7 +1017,7 @@ endif |
1007 | 1017 | echo "Error: fuser or lsof required"; exit 1; \ |
1008 | 1018 | fi |
1009 | 1019 |
|
1010 | | -backend web backend-targeted fast strict build-local latest dev: |
| 1020 | +backend web backend-targeted backend-iac backend-software fast strict build-local latest dev: |
1011 | 1021 | @: |
1012 | 1022 |
|
1013 | 1023 | # Swallow positional args (e.g., make start 9092, make build backend) |
|
0 commit comments