CoolFace
Apppublic

lankasailendra/BMCTESTMAIN

sourceHugging Faceupdated 1d agoView on Hugging Face
0likes
testexecute-bhom.bat35 linesDownload Raw Back to client_executor
1@echo off2setlocal EnableExtensions3cd /d "%~dp0"4 5echo === Helix CoPilot — BHOM ===6echo.7 8set BMC_BHOM_URL=https://your-bhom-host9set BMC_BHOM_API_KEY=your-api-key10 11REM Optional — for JWT assign/close operations:12set BMC_BHOM_USER=your-user13echo Enter BHOM password (optional, press Enter to skip JWT tests):14for /f "delims=" %%i in ('powershell -NoProfile -Command "$p = Read-Host -AsSecureString; [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($p))"') do set "BMC_BHOM_PASSWORD=%%i"15 16if not exist reports mkdir reports17if not exist logs mkdir logs18 19if not defined BMC_PYTEST_TARGET set BMC_PYTEST_TARGET=.20REM set BMC_PYTEST_TARGET=test_api_generated.py::test_tc_foo_00121 22for /f %%i in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd_HHmmss"') do set RUN_TS=%%i23set "REPORT_HTML=%CD%\reports\run_%RUN_TS%.html"24set "REPORT_JUNIT=%CD%\reports\run_%RUN_TS%.xml"25 26python -c "import pytest_html" 2>nul27if errorlevel 1 (echo Run Install-HelixCoPilot-Client.bat & pause & exit /b 1)28 29echo Pytest target: %BMC_PYTEST_TARGET%30python -m pytest %BMC_PYTEST_TARGET% -v -s --tb=short -ra --html=%REPORT_HTML% --self-contained-html --junitxml=%REPORT_JUNIT%31set TEST_EXIT=%ERRORLEVEL%32echo Reports: %REPORT_HTML%33pause34exit /b %TEST_EXIT%35