Skip to content

Commit 79361c0

Browse files
committed
move cov options outside setup.cfg
1 parent 1a6ee55 commit 79361c0

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ exclude =
1212
dist,
1313
src/compas_fab/backends/vrep/remote_api/*,
1414
src/compas_fab/ghpython/path_planning.py
15-
16-
[coverage:run]
17-
branch = True

tasks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,17 @@ def test(ctx, checks=False, doctest=False, codeblock=False, coverage=False):
178178
check(ctx)
179179

180180
with chdir(BASE_FOLDER):
181-
pytest_args = ['pytest']
181+
pytest_args = ["pytest"]
182182
if doctest:
183-
pytest_args.append('--doctest-modules')
183+
pytest_args.append("--doctest-modules")
184184
if coverage:
185-
pytest_args.append('--cov=compas_fab')
185+
pytest_args.append("--cov-branch --cov=compas_fab")
186186

187187
ctx.run(" ".join(pytest_args))
188188

189189
# Using --doctest-modules together with docs as the testpaths goes bananas
190190
if codeblock:
191-
ctx.run('pytest docs')
191+
ctx.run("pytest docs")
192192

193193

194194
@task

0 commit comments

Comments
 (0)