Skip to content

Commit 72eba96

Browse files
authored
Merge pull request #4 from gfenoy/feature/run-tests
Fix issue with coverage in pyproject.toml
2 parents a29db67 + d0a7c01 commit 72eba96

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,8 @@ dev-mode = true
117117
[tool.hatch.envs.default.scripts]
118118
test = "pytest {args:tests}"
119119
test-no-docker = "pytest {args:tests}"
120-
test-cov = "coverage run -m pytest {args:tests}"
121-
test-cov-no-docker = "coverage run -m pytest {args:tests}"
122-
test-cov-xml = [
123-
"coverage run -m pytest {args:tests}",
124-
"coverage xml",
125-
]
120+
test-cov = "pytest --cov=ipython2cwl --cov-report=term-missing {args:tests}"
121+
test-cov-xml = "pytest --cov=ipython2cwl --cov-report=xml --cov-report=term-missing {args:tests}"
126122
cov-report = [
127123
"- coverage combine",
128124
"coverage report",
@@ -173,11 +169,11 @@ testpaths = [
173169

174170
# Coverage configuration
175171
[tool.coverage.run]
176-
source_pkgs = ["ipython2cwl", "tests"]
172+
source = ["ipython2cwl"]
177173
branch = true
178-
parallel = true
179174
omit = [
180175
"ipython2cwl/__about__.py",
176+
"*/tests/*",
181177
]
182178

183179
[tool.coverage.paths]

0 commit comments

Comments
 (0)