Skip to content

Commit f708a90

Browse files
committed
Update optional dependencies for unit testing
1 parent f4fafa2 commit f708a90

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The `qwt` package short-term roadmap is the following:
105105

106106
### Optional dependencies
107107

108-
- coverage, pytest, pytest-qt, pytest-cov (for unit tests)
108+
- coverage, pytest (for unit tests)
109109
- sphinx (for documentation generation)
110110

111111
## Installation

doc/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Requirements:
1010
* QtPy 1.9 or higher
1111
* NumPy 1.21 or higher
1212
* Sphinx for documentation generation
13-
* pytest, pytest-cov, pytest-qt, coverage for unit testing
13+
* pytest, coverage for unit testing
1414

1515
Installation
1616
------------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PythonQwt-tests = "qwt.tests:run"
4444
[project.optional-dependencies]
4545
dev = ["black", "isort", "pylint", "Coverage"]
4646
doc = ["PyQt5", "sphinx>6", "python-docs-theme"]
47-
test = ["pytest", "pytest-cov", "pytest-qt", "pytest-xvfb"]
47+
test = ["pytest", "pytest-xvfb"]
4848

4949
[tool.setuptools.packages.find]
5050
include = ["qwt*"]

scripts/run_coverage.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ call %~dp0utils GetScriptPath SCRIPTPATH
1111
call %FUNC% SetPythonPath
1212
call %FUNC% UsePython
1313
set COVERAGE_PROCESS_START=%SCRIPTPATH%\..\.coveragerc
14-
pytest -v --cov --cov-report=html
14+
coverage run -m pytest
15+
coverage combine
16+
coverage html
1517
start htmlcov\index.html
1618
call %FUNC% EndOfScript

0 commit comments

Comments
 (0)