brief-rags-bench/run_all_tests.bat

49 lines
1.0 KiB
Batchfile

@echo off
REM Run all tests (unit + integration)
echo ========================================
echo Running ALL tests (unit + integration)
echo ========================================
echo.
echo [1/2] Running unit tests...
call run_unit_tests.bat
set UNIT_RESULT=%ERRORLEVEL%
echo.
echo ========================================
echo.
echo [2/2] Running integration tests...
call run_integration_tests.bat
set INTEGRATION_RESULT=%ERRORLEVEL%
echo.
echo ========================================
echo Test Results Summary
echo ========================================
if %UNIT_RESULT% EQU 0 (
echo Unit tests: ✓ PASSED
) else (
echo Unit tests: ✗ FAILED
)
if %INTEGRATION_RESULT% EQU 0 (
echo Integration tests: ✓ PASSED
) else (
echo Integration tests: ✗ FAILED
)
echo ========================================
if %UNIT_RESULT% EQU 0 if %INTEGRATION_RESULT% EQU 0 (
echo.
echo ✓ ALL TESTS PASSED!
exit /b 0
) else (
echo.
echo ✗ SOME TESTS FAILED!
exit /b 1
)