forked from mtusi2026/mtusi2026lab3
lab3-4 оценка
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
echo Setting UTF-8 mode for Python...
|
||||
set PYTHONUTF8=1
|
||||
|
||||
echo.
|
||||
echo Running smoke tests...
|
||||
python tests/smoke.py --base-url http://localhost:8080
|
||||
if %errorlevel% neq 0 (
|
||||
echo Smoke tests FAILED!
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Running resilience (failover) tests...
|
||||
python tests/resilience.py --base-url http://localhost:8080 --mode failover --action-script scripts/stop-one.bat
|
||||
if %errorlevel% neq 0 (
|
||||
echo Resilience tests FAILED!
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ALL TESTS PASSED!
|
||||
pause
|
||||
Reference in New Issue
Block a user