mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
* Add comprehensive tests for multiple pkg * Add db_path to config * Add e2e testing pipeline * Add github workflow * Remove config.test.yaml * Fix lint issue * Increase timeout * Add e2e testing for signing * Skip signing if node is not in participant list * Code cleanup * Add e2e testing for signing and resharing * Increase timeout * Add test instructions * Update github workflow branching * Add vulnerabilties check in CI * Fix ci
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
.PHONY: all build clean mpcium mpc test test-verbose test-coverage e2e-test e2e-clean cleanup-test-env
|
|
|
|
BIN_DIR := bin
|
|
|
|
# Default target
|
|
all: build
|
|
|
|
# Build both binaries
|
|
build: mpcium mpc
|
|
|
|
# Install mpcium (builds and places it in $GOBIN or $GOPATH/bin)
|
|
mpcium:
|
|
go install ./cmd/mpcium
|
|
|
|
# Install mpcium-cli
|
|
mpc:
|
|
go install ./cmd/mpcium-cli
|
|
|
|
# Run all tests
|
|
test:
|
|
go test ./...
|
|
|
|
# Run tests with verbose output
|
|
test-verbose:
|
|
go test -v ./...
|
|
|
|
# Run tests with coverage report
|
|
test-coverage:
|
|
go test -v -coverprofile=coverage.out ./...
|
|
go tool cover -html=coverage.out -o coverage.html
|
|
|
|
# Run E2E integration tests
|
|
e2e-test: build
|
|
@echo "Running E2E integration tests..."
|
|
cd e2e && make test
|
|
|
|
# Run E2E tests with coverage
|
|
e2e-test-coverage: build
|
|
@echo "Running E2E integration tests with coverage..."
|
|
cd e2e && make test-coverage
|
|
|
|
# Clean up E2E test artifacts
|
|
e2e-clean:
|
|
@echo "Cleaning up E2E test artifacts..."
|
|
cd e2e && make clean
|
|
|
|
# Comprehensive cleanup of test environment (kills processes, removes artifacts)
|
|
cleanup-test-env:
|
|
@echo "Performing comprehensive test environment cleanup..."
|
|
cd e2e && ./cleanup_test_env.sh
|
|
|
|
# Run all tests (unit + E2E)
|
|
test-all: test e2e-test
|
|
|
|
# Wipe out manually built binaries if needed (not required by go install)
|
|
clean:
|
|
rm -rf $(BIN_DIR)
|
|
rm -f coverage.out coverage.html
|
|
|
|
# Full clean (including E2E artifacts)
|
|
clean-all: clean e2e-clean
|