Skip to content

Commit d803b68

Browse files
committed
Always measure coverage
1 parent 57fcd65 commit d803b68

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
requires = ["setuptools>=51", "cython>=0.29", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5-
[tool.coverage.run]
6-
plugins = ["Cython.Coverage"]
5+
# [tool.coverage.run]
6+
# plugins = ["Cython.Coverage"]

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
envlist=py3
55
[testenv]
66
deps=pytest
7+
coverage
78
passenv=
89
PYTHON_ISAL_LINK_DYNAMIC
910
commands =
10-
pytest tests
11+
# Create HTML coverage report for humans and xml coverage report for external services.
12+
coverage run --source={envsitepackagesdir}/isal -m py.test tests
13+
coverage html
14+
coverage xml
1115

1216
[testenv:coverage]
17+
# Separate test environment for cython coverage.
1318
deps=coverage[toml]
1419
cython
1520
pytest

0 commit comments

Comments
 (0)