Unittests zu allen Elementen erstellt

This commit is contained in:
2026-01-28 18:28:54 +01:00
parent e8c6b17ea9
commit c29f13a4ae
14 changed files with 1523 additions and 566 deletions
+7 -5
View File
@@ -2,27 +2,29 @@
CALL setenv.bat
echo ========================================
echo running all unittests in lib\Elements
echo running all unittests in lib\Elemente
echo ========================================
echo.
CALL manage_interpreter.bat activate_interpreter
CALL manage_interpreter.bat activate
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
echo Gefundene Testdateien:
for /f "delims=" %%f in ('dir /b "%PROJECT_LIB%\Elemente\*_tests.py" 2^>nul') do echo %%f
echo.
"%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
CALL manage_interpreter.bat deactivate
exit /B 1
) else (
echo.
echo All tests passed!
CALL manage_interpreter.bat deactivate_interpreter
CALL manage_interpreter.bat deactivate
exit /B 0
)