mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Run tests with Python Development mode
Helps catching more issues with the test suite. https://docs.python.org/3/library/devmode.html#devmode
This commit is contained in:
4
Makefile
4
Makefile
@@ -66,11 +66,11 @@ doclinter:
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@$(PYTHON) -m pytest -v $(TEST)
|
||||
@$(PYTHON) -X dev -m pytest -v $(TEST)
|
||||
|
||||
.PHONY: covertest
|
||||
covertest:
|
||||
@$(PYTHON) -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
||||
@$(PYTHON) -X dev -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
|
2
tox.ini
2
tox.ini
@@ -28,7 +28,7 @@ setenv =
|
||||
PYTHONWARNINGS = all,ignore::ImportWarning:importlib._bootstrap_external,ignore::DeprecationWarning:site,ignore::DeprecationWarning:distutils
|
||||
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
|
||||
commands=
|
||||
pytest --durations 25 {posargs}
|
||||
python -X dev -m pytest --durations 25 {posargs}
|
||||
|
||||
[testenv:flake8]
|
||||
basepython = python3
|
||||
|
Reference in New Issue
Block a user