File: coverage.bat

package info (click to toggle)
python-canmatrix 0.9.3~github-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,896 kB
  • sloc: xml: 30,201; python: 12,472; makefile: 18; sh: 9
file content (16 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off
rem -------------------------------------------------------------
rem In PyCharm create "external tool" pointing to this file, with
rem Arguments: $PyInterpreterDirectory$ $FilePath$
rem WorkingDirectory $ProjectFileDir$
rem -------------------------------------------------------------
set python=%1\python.exe
set arguments=%2


%python% -m coverage run -m pytest %arguments%
if %errorlevel% EQU 0 ( 
	%python% -m coverage html
	cd htmlcov
	index.html
)