27 lines
648 B
Batchfile
27 lines
648 B
Batchfile
@echo off
|
|
REM Run integration tests (requires DB API running)
|
|
|
|
echo Checking if DB API is running...
|
|
curl -f -s http://localhost:8081/health >nul 2>&1
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo.
|
|
echo ERROR: DB API is not responding at http://localhost:8081
|
|
echo Please start DB API before running integration tests.
|
|
echo.
|
|
exit /b 1
|
|
)
|
|
|
|
echo DB API is running ✓
|
|
echo.
|
|
echo Running integration tests...
|
|
.venv\Scripts\python.exe -m pytest tests/integration/ -v -m integration
|
|
|
|
if %ERRORLEVEL% EQU 0 (
|
|
echo.
|
|
echo ✓ All integration tests passed!
|
|
) else (
|
|
echo.
|
|
echo ✗ Some integration tests failed!
|
|
exit /b %ERRORLEVEL%
|
|
)
|