Skip to content

Commit a3a6a28

Browse files
authored
Merge pull request #1 from CatalinAnt/AymanBranch
Created script for measuring doing tests and measuring branch coverag…
2 parents bbce1bd + a2036f5 commit a3a6a28

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[report]
22
omit =
3+
*/tests/*
34
*/python?.?/*
45
*/site-packages/nose/*
56
*__init__*

branch-coverage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import subprocess
2+
3+
subprocess.run(["coverage", "run", "--branch", "-m", "pytest", "tests"])
4+
subprocess.run(["coverage", "report"])

0 commit comments

Comments
 (0)