@echo off echo Starting automated tests... cd /d %~dp0 :: 设置控制台编码为UTF-8 chcp 65001 > nul :: 设置默认环境为dev if "%1"=="" ( set TEST_ENV=dev ) else ( set TEST_ENV=%1 ) echo [Batch] Preparing to run tests in %TEST_ENV% environment... :: 运行测试并发送报告 set NODE_ENV=%TEST_ENV% node src/scripts/runTestsAndSendReport.js echo. echo [Batch] Execution completed