You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poetry run pytest tests/ --cov=services --cov=shared --cov-report=html --cov-report=term
77
+
@echo "Coverage report available at: htmlcov/index.html"
78
+
79
+
# Test Infrastructure Management
80
+
deploy-test-infra:
81
+
@echo "Deploying EventBridge test infrastructure..."
82
+
cd infrastructure/test_harness && poetry run cdk deploy
83
+
84
+
destroy-test-infra:
85
+
@echo "Destroying EventBridge test infrastructure..."
86
+
cd infrastructure/test_harness && poetry run cdk destroy
87
+
88
+
check-test-infra:
89
+
@echo "Checking test infrastructure status..."
90
+
@aws dynamodb describe-table --table-name cns427-task-api-test-results > /dev/null 2>&1&&echo"✅ Test infrastructure is deployed"||echo"❌ Test infrastructure not found"
91
+
92
+
# Code quality
93
+
lint:
94
+
@echo "Running linting checks..."
95
+
poetry run lint
96
+
97
+
format:
98
+
@echo "Formatting code..."
99
+
poetry run format
100
+
101
+
type-check:
102
+
@echo "Running type checking..."
103
+
poetry run type-check
104
+
105
+
cdk-nag:
106
+
@echo "Running CDK Nag security checks..."
107
+
@echo "This will fail if security violations are found."
108
+
ENABLE_CDK_NAG=true poetry run cdk synth --quiet > /dev/null
109
+
@echo "✅ CDK Nag checks passed - no security violations found"
110
+
111
+
cdk-nag-report:
112
+
@echo "Generating CDK Nag security report..."
113
+
ENABLE_CDK_NAG=true CDK_NAG_REPORT=true poetry run cdk synth --quiet > /dev/null
0 commit comments