black/tox.ini
Sagi Shadur 407052724f
Switch to pytest and tox (#1763)
* Add venv to .gitignore

* Use tox to run tests

* Make fuzz run in tox

* Split tests files

* Fix import error
2020-10-19 10:35:26 -07:00

26 lines
579 B
INI

[tox]
envlist = py{36,37,38,39},fuzz
[testenv]
setenv = PYTHONPATH = {toxinidir}/src
skip_install = True
deps =
-r{toxinidir}/test_requirements.txt
commands =
pip install -e .[d]
coverage erase
coverage run -m pytest tests
coverage report
[testenv:fuzz]
skip_install = True
deps =
-r{toxinidir}/test_requirements.txt
hypothesmith
lark-parser < 0.10.0
; lark-parser's version is set due to a bug in hypothesis. Once it solved, that would be fixed.
commands =
pip install -e .[d]
coverage erase
coverage run fuzz.py
coverage report