This commit is contained in:
Seif Ghazi 2025-08-01 21:19:30 -04:00
parent 9cb513019d
commit 80a25f7ba7
No known key found for this signature in database
GPG key ID: 4519A4B1EEC1494E
17 changed files with 1566 additions and 28 deletions

View file

@ -1,4 +1,4 @@
.PHONY: all build run clean install dev
.PHONY: all build run clean install dev test test-proxy test-coverage
# Default target
all: install build
@ -43,6 +43,19 @@ clean:
rm -f requests.db
rm -rf requests/
# Testing
test: test-proxy
test-proxy:
@echo "🧪 Running proxy tests..."
cd proxy && go test -v ./...
test-coverage:
@echo "📊 Running tests with coverage..."
cd proxy && go test -v -coverprofile=coverage.out ./...
cd proxy && go tool cover -html=coverage.out -o coverage.html
@echo "📊 Coverage report generated: proxy/coverage.html"
# Database operations
db-reset:
@echo "🗑️ Resetting database..."