Update module name to github.com/fraktal/mev-beta and fix channel closing issues in pipeline stages
This commit is contained in:
37
Makefile
37
Makefile
@@ -29,6 +29,12 @@ test:
|
||||
@echo "Running tests..."
|
||||
@go test -v ./...
|
||||
|
||||
# Run tests for a specific package
|
||||
.PHONY: test-pkg
|
||||
test-pkg:
|
||||
@echo "Running tests for package..."
|
||||
@go test -v ./$(PKG)/...
|
||||
|
||||
# Run tests with coverage
|
||||
.PHONY: test-coverage
|
||||
test-coverage:
|
||||
@@ -37,6 +43,24 @@ test-coverage:
|
||||
@go tool cover -html=coverage.out -o coverage.html
|
||||
@echo "Coverage report generated: coverage.html"
|
||||
|
||||
# Run unit tests
|
||||
.PHONY: test-unit
|
||||
test-unit:
|
||||
@echo "Running unit tests..."
|
||||
@go test -v ./test/unit/...
|
||||
|
||||
# Run integration tests
|
||||
.PHONY: test-integration
|
||||
test-integration:
|
||||
@echo "Running integration tests..."
|
||||
@go test -v ./test/integration/...
|
||||
|
||||
# Run end-to-end tests
|
||||
.PHONY: test-e2e
|
||||
test-e2e:
|
||||
@echo "Running end-to-end tests..."
|
||||
@go test -v ./test/e2e/...
|
||||
|
||||
# Clean build artifacts
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@@ -79,6 +103,14 @@ update:
|
||||
@go mod tidy
|
||||
@echo "Dependencies updated!"
|
||||
|
||||
# Install test dependencies
|
||||
.PHONY: test-deps
|
||||
test-deps:
|
||||
@echo "Installing test dependencies..."
|
||||
@go get github.com/stretchr/testify/assert
|
||||
@go mod tidy
|
||||
@echo "Test dependencies installed!"
|
||||
|
||||
# Help
|
||||
.PHONY: help
|
||||
help:
|
||||
@@ -87,9 +119,14 @@ help:
|
||||
@echo " build - Build the application"
|
||||
@echo " run - Build and run the application"
|
||||
@echo " test - Run tests"
|
||||
@echo " test-pkg - Run tests for a specific package (use PKG=package_name)"
|
||||
@echo " test-coverage - Run tests with coverage report"
|
||||
@echo " test-unit - Run unit tests"
|
||||
@echo " test-integration - Run integration tests"
|
||||
@echo " test-e2e - Run end-to-end tests"
|
||||
@echo " clean - Clean build artifacts"
|
||||
@echo " deps - Install dependencies"
|
||||
@echo " test-deps - Install test dependencies"
|
||||
@echo " fmt - Format code"
|
||||
@echo " vet - Vet code"
|
||||
@echo " lint - Lint code (requires golangci-lint)"
|
||||
|
||||
Reference in New Issue
Block a user