25 lines
539 B
Batchfile
25 lines
539 B
Batchfile
@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 |