D:删除构建文件,增加调试脚本

This commit is contained in:
jimmy committed 2025-12-29 10:08:26 +08:00
1 parent 3b89b2d722
commit d133bacf55
40 files changed
+1180 -1066

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
@echo off
REM ========================================
REM 测试脚本 - 运行所有单元测试
REM ========================================
echo.
echo ==========================================
echo 运行 Sharp-Basic 单元测试
echo ==========================================
echo.
REM 切换到项目根目录
cd /d "%~dp0\.."
REM 切换到解决方案目录
cd src\Sharp
echo 正在还原依赖并构建测试项目...
dotnet restore Sharp.sln --verbosity quiet
dotnet build Sharp.sln --configuration Debug --verbosity quiet
echo.
echo 正在运行测试...
echo.
dotnet test Sharp.sln --configuration Debug --no-build --verbosity normal
if %ERRORLEVEL% EQU 0 (
echo.
echo ==========================================
echo 所有测试通过!
echo ==========================================
) else (
echo.
echo ==========================================
echo 测试失败!错误代码: %ERRORLEVEL%
echo ==========================================
)
cd ..\..
echo.
pause