
add test for negative scenario: formatting python2 code tag python2 only tests Co-authored-by: KotlinIsland <kotlinisland@users.noreply.github.com>
29 lines
707 B
INI
29 lines
707 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 -m "not python2" {posargs}
|
|
pip install -e .[d,python2]
|
|
coverage run -m pytest tests -m "not without_python2" {posargs}
|
|
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
|