matching_app/scripts/dev-test.sh
2025-05-02 15:12:18 +07:00

23 lines
770 B
Bash

#!/bin/bash
# Script for quick local developer testing
set -eo pipefail
echo "=================================================================="
echo " RUNNING QUICK DEVELOPER TESTS "
echo "=================================================================="
echo "[1/3] Running go fmt & vet..."
go fmt ./...
go vet ./...
echo "[2/3] Running linters..."
golangci-lint run --timeout 5m
echo "[3/3] Running short unit tests..."
go test -short -v -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
echo "=================================================================="
echo " QUICK TESTS COMPLETED SUCCESSFULLY "
echo "=================================================================="