@echo off REM 脚本:只显示测试失败的断言信息 setlocal if "%~1"=="" ( echo 用法: show-test-failures.bat "测试类路径" echo 示例: show-test-failures.bat "info.panli.junbo.scrum.StoryExcelDaoTest.testRead" exit /b 1 ) echo 正在运行测试: %~1 echo. gradlew.bat test --tests "%~1" --rerun-tasks 2>&1 | findstr /C:"FAILED" /C:"Expected" /C:"AssertionError" /C:"but was" echo. echo ========================================== echo 详细报告: build\reports\tests\test\index.html echo ==========================================