Skip to content

Commit

Permalink
Updated clean_up/coverage scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Mar 9, 2024
1 parent 9f1f18a commit 77d8923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/clean_up.bat
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ set PUBLIC=%SCRIPTPATH%\..\..\%LIBNAME%_public
if exist %TEMP% ( rmdir /s /q %TEMP% )
if exist %PUBLIC% ( rmdir /s /q %PUBLIC% )

@REM Removing files/directories related to Coverage
@REM Removing files/directories related to Coverage and pytest
if exist .coverage ( del /q .coverage )
if exist coverage.xml ( del /q coverage.xml )
if exist htmlcov ( rmdir /s /q htmlcov )
del /q .coverage.* 1>nul 2>&1
if exist sitecustomize.py ( del /q sitecustomize.py )
if exist .pytest_cache ( rmdir /s /q .pytest_cache )
2 changes: 1 addition & 1 deletion scripts/run_coverage.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if exist sitecustomize.py ( del /q sitecustomize.py )
echo import coverage> sitecustomize.py
echo coverage.process_startup()>> sitecustomize.py
set COVERAGE_PROCESS_START=%SCRIPTPATH%\..\.coveragerc
coverage run -m pytest -k control
coverage run -m pytest %*
coverage combine
coverage html
start .\htmlcov\index.html
Expand Down

0 comments on commit 77d8923

Please sign in to comment.