Skip to content

Commit 387e19a

Browse files
feat: add test coveragemarkers to pyproject.toml (#847)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 833c5de commit 387e19a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/actions/unit-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ runs:
7272
- name: Run pytest
7373
run: |
7474
if [ "${{ inputs.pytest-markers }}" = "" ]; then
75-
pytest
75+
pytest
7676
else
7777
pytest -m "${{ inputs.pytest-markers }}"
7878
fi

doc/changelog/847.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add test coveragemarkers to ``pyproject.toml``

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,16 @@ source = ["ansys.dyna.core"]
121121
[tool.coverage.report]
122122
show_missing = true
123123

124+
124125
[tool.pytest.ini_options]
125126
minversion = "7.1"
126127
addopts = "-ra --cov=ansys.dyna.core --cov-report html:.cov/html --cov-report xml:.cov/xml --cov-report term -vv"
127128
testpaths = ["tests"]
129+
markers = """
130+
run: tests that exercise the `run` subpackage
131+
keywords: tests that exercies the `keyword` subpackage
132+
viz: tests that do 3d visualization
133+
"""
128134

129135
[tool.towncrier]
130136
directory = "doc/changelog"

pytest.ini

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)