Add code coverage for tests (excluding ptvsd.server and pydevd).

Fix some issues on Python 2.7.

Remove dead code.
This commit is contained in:
Pavel Minaev 2019-09-18 20:05:47 -07:00 committed by Pavel Minaev
parent b7c48cc9fe
commit 0825dbeb37
12 changed files with 59 additions and 63 deletions

View file

@ -1,8 +1,11 @@
[tox]
envlist = py{27,34,35,36,37}
envlist = py{27,34,35,36,37}{,-cov}
[testenv]
deps = -rtests/requirements.txt
passenv = PTVSD_LOG_DIR
setenv =
PTVSD_TEST=1
commands =
pytest {posargs:-n8}
!cov: pytest {posargs}
cov: pytest --cov --cov-append --cov-config=.coveragerc {posargs}