summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini18
1 files changed, 6 insertions, 12 deletions
diff --git a/tox.ini b/tox.ini
index 8de3055..e481ab2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,19 +19,13 @@ extras =
{env:WITH_EXTRAS:}
commands =
pipenv install --dev --skip-lock
- pytest --doctest-modules {envsitepackagesdir}/natsort
- pytest README.rst docs/source/intro.rst docs/source/examples.rst docs/source/howitworks.rst
- pytest --flakes --pep8 --tb=short --cov {envsitepackagesdir}/natsort --cov-report term-missing
-
-[testenv:py27]
-commands =
- pipenv install --dev --skip-lock
- pytest --doctest-modules {envsitepackagesdir}/natsort
+ # Only run How It Works doctest on Python 3.6.
+ py36: {envpython} -m doctest -o IGNORE_EXCEPTION_DETAIL docs/source/howitworks.rst
+ # Other doctests are run for all pythons.
pytest README.rst docs/source/intro.rst docs/source/examples.rst
- pytest --flakes --pep8 --tb=short --cov {envsitepackagesdir}/natsort --cov-report term-missing
-
-[testenv:pypy]
-commands = {[testenv:py27]commands}
+ pytest --doctest-modules {envsitepackagesdir}/natsort
+ # Full test suite. Allow the user to pass command-line objects.
+ pytest --flakes --pep8 --tb=short {posargs:}
# Build documentation.
[testenv:docs]