Unittest Aufruf dazu
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
@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
|
||||
)
|
||||
|
||||
|
||||
REM Iterate through all CSV files in testdata directory
|
||||
for %%f in (%PROJECT_LIB%\Elemente\*.py) do (
|
||||
echo Processing: %%~nxf
|
||||
python "%%f"
|
||||
)
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user