[tox]
envlist =
    py35
    py36
    py37
    pypy
    lint
    coverage

[testenv]
deps =
    pytest
commands = py.test --tap-combined

[testenv:lint]
deps =
    black
    flake8
commands =
    black --check src setup.py
    flake8 src setup.py

[testenv:coverage]
setenv =
    CI = true
passenv = TRAVIS*
deps =
    codecov
    coverage
    pytest
commands =
    coverage run --source pytest_tap -m py.test
    codecov

[tox]
envlist =
    py35
    py36
    py37
    pypy
    lint
    coverage

[testenv]
deps =
    pytest
commands = py.test --tap-combined

[testenv:lint]
deps =
    black
    flake8
commands =
    black --check src setup.py
    flake8 src setup.py

[testenv:coverage]
setenv =
    CI = true
passenv = TRAVIS*
deps =
    codecov
    pytest
    pytest-cov
commands =
    pytest --cov=pytest_tap
    codecov

Switch to pytest-cov which has better subprocess support.
Switch to pytest-cov which has better subprocess support.

The plugin uses subprocess to run tests and the default coverage
configuration was not catching lines that were covered. By switching to
pytest-cov, the coverage report is able to collect all the coverage data
and report the true coverage level (which is good because coverage was
really at 100% instead of the lie of 48%!).
