forked from AG_QGIS/Plugin_SN_Basis
Anpassung an den Wrappern für sn_plan41
This commit is contained in:
52
tests/test_qgis.bat
Normal file
52
tests/test_qgis.bat
Normal file
@@ -0,0 +1,52 @@
|
||||
@echo off
|
||||
setlocal
|
||||
echo BATCH WIRD AUSGEFÜHRT
|
||||
pause
|
||||
|
||||
echo ================================================
|
||||
echo Starte Tests in QGIS-Python-Umgebung
|
||||
echo ================================================
|
||||
|
||||
REM Pfad zur QGIS-Installation
|
||||
set QGIS_BIN=D:\OSGeo\bin
|
||||
|
||||
REM Prüfen, ob python-qgis.bat existiert
|
||||
if not exist "%QGIS_BIN%\python-qgis.bat" (
|
||||
echo.
|
||||
echo [FEHLER] python-qgis.bat wurde nicht gefunden!
|
||||
echo Erwarteter Pfad:
|
||||
echo %QGIS_BIN%\python-qgis.bat
|
||||
echo.
|
||||
echo Bitte korrigiere den Pfad in test_qgis.bat.
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [INFO] QGIS-Python gefunden. Starte Tests...
|
||||
echo.
|
||||
|
||||
"%QGIS_BIN%\python-qgis.bat" -m coverage run run_tests.py
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo [FEHLER] Testlauf fehlgeschlagen.
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ================================================
|
||||
echo Coverage HTML-Bericht wird erzeugt...
|
||||
echo ================================================
|
||||
|
||||
"%QGIS_BIN%\python-qgis.bat" -m coverage html
|
||||
|
||||
echo.
|
||||
echo Fertig!
|
||||
echo Öffne jetzt: coverage_html\index.html
|
||||
echo ================================================
|
||||
|
||||
pause
|
||||
endlocal
|
||||
Reference in New Issue
Block a user