RUN_TESTS.bat

Read-only source from the unchanged 0.3.4 kit. Existing license terms apply.

@echo off
setlocal
cd /d "%~dp0"
set "PYTHONPATH=%CD%\src"
set "REPORT=%CD%\AIL_TEST_RESULTS.txt"
py -m unittest discover -s tests -v > "%REPORT%" 2>&1
if errorlevel 1 (
  echo Some tests failed. Opening the report.
) else (
  echo All tests passed. Opening the report.
)
start "AIL test results" notepad "%REPORT%"
exit /b 0