| 1 |
@echo off |
| 2 |
REM This script was derived from PythonQwt project |
| 3 |
REM ====================================================== |
| 4 |
REM Run coverage code analysis tool |
| 5 |
REM ====================================================== |
| 6 |
REM Licensed under the terms of the MIT License |
| 7 |
REM Copyright (c) 2020 Pierre Raybaut |
| 8 |
REM (see PythonQwt LICENSE file for more details) |
| 9 |
REM ====================================================== |
| 10 |
setlocal |
| 11 |
call %~dp0utils GetScriptPath SCRIPTPATH |
| 12 |
call %FUNC% GetLibName LIBNAME |
| 13 |
call %FUNC% GetModName MODNAME |
| 14 |
call %FUNC% SetPythonPath |
| 15 |
call %FUNC% UsePython |
| 16 |
if exist sitecustomize.py ( del /q sitecustomize.py ) |
| 17 |
echo import coverage> sitecustomize.py |
| 18 |
echo coverage.process_startup()>> sitecustomize.py |
| 19 |
set COVERAGE_PROCESS_START=%SCRIPTPATH%\..\.coveragerc |
| 20 |
coverage run -m cdlclient.tests.all_tests %* --timeout 600 |
| 21 |
@REM coverage report -m |
| 22 |
coverage combine |
| 23 |
coverage html |
| 24 |
start .\htmlcov\index.html |
| 25 |
if exist sitecustomize.py ( del /q sitecustomize.py ) |
| 26 |
call %FUNC% EndOfScript |