You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
384 B
17 lines
384 B
@echo off
|
|
REM Run all Go tests in auth handler (from backend directory)
|
|
setlocal
|
|
set CONFIG_SRC=config.yaml
|
|
set CONFIG_DST=internal\handler\auth\config.yaml
|
|
|
|
REM 复制 config.yaml
|
|
copy %CONFIG_SRC% %CONFIG_DST% >nul
|
|
|
|
REM 运行测试
|
|
echo Running all tests in auth handler...
|
|
go test ./internal/handler/auth -v
|
|
|
|
REM 删除副本
|
|
if exist %CONFIG_DST% del %CONFIG_DST%
|
|
endlocal
|
|
pause
|