29 lines
786 B
Batchfile
29 lines
786 B
Batchfile
@echo off
|
|
CALL setenv.bat
|
|
|
|
echo ========================================
|
|
echo running all unittests in lib\Elements
|
|
echo ========================================
|
|
echo.
|
|
CALL manage_interpreter.bat activate_interpreter
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo.
|
|
echo Failed to activate the Python interpreter!
|
|
pause
|
|
exit /B 1
|
|
)
|
|
echo python -m unittest discover -t %PROJECT_LIB% -s %PROJECT_LIB%\Elemente -p "*_tests.py" -v
|
|
"%VIRTUAL_ENV%\Scripts\python.exe" -m unittest discover -t %PROJECT_LIB% -s %PROJECT_LIB%\Elemente -p "*_tests.py" -v
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo.
|
|
echo Tests failed!
|
|
CALL manage_interpreter.bat deactivate_interpreter
|
|
exit /B 1
|
|
) else (
|
|
echo.
|
|
echo All tests passed!
|
|
CALL manage_interpreter.bat deactivate_interpreter
|
|
exit /B 0
|
|
)
|
|
|