GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpproxy-go/scripts/run-unit-tests.cmd at main · DocSpring/mcpproxy-go

Expand file tree

/

run-unit-tests.cmd

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
58 lines (46 loc) · 1.28 KB
/

run-unit-tests.cmd

Copy path

File metadata and controls

58 lines (46 loc) · 1.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@echo off
setlocal enabledelayedexpansion
echo Running MCP Proxy Unit Tests
echo =============================
REM Check if Go is installed
where go >nul 2>nul
if %errorlevel% neq 0 (
echo Error: Go is not installed
exit /b 1
)
echo Go version:
go version
echo.
echo Building mcpproxy binary...
go build -o mcpproxy.exe ./cmd/mcpproxy
if %errorlevel% neq 0 (
echo Build failed
exit /b 1
)
echo Build successful
echo.
echo Running unit tests...
REM Use quotes to properly handle the coverprofile argument
go test -v -race -timeout 5m "-coverprofile=coverage.out" -covermode=atomic "-run=^Test[^E]" ./...
set test_result=%errorlevel%
if %test_result% equ 0 (
echo.
echo Unit tests passed
REM Generate coverage report if coverage.out exists
if exist coverage.out (
echo Generating coverage report...
go tool cover "-html=coverage.out" -o coverage.html
echo Coverage report generated: coverage.html
REM Show coverage summary
go tool cover "-func=coverage.out" | findstr /C:"total:"
)
echo All tests completed successfully!
) else (
echo.
echo Unit tests failed
)
REM Cleanup
echo Cleaning up...
if exist mcpproxy.exe del mcpproxy.exe
if exist coverage.out del coverage.out
exit /b %test_result%
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.