1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
@echo off
REM ======================================================
REM Test coverage script
REM ======================================================
REM Licensed under the terms of the MIT License
REM Copyright (c) 2020 Pierre Raybaut
REM (see LICENSE file for more details)
REM ======================================================
setlocal
call %~dp0utils GetScriptPath SCRIPTPATH
call %FUNC% SetPythonPath
call %FUNC% UsePython
set COVERAGE_PROCESS_START=%SCRIPTPATH%\..\.coveragerc
coverage run -m pytest
coverage combine
coverage html
start htmlcov\index.html
call %FUNC% EndOfScript
|