Skip to content
Permalink
Browse files

switch to pytest

add test coverage measurement
  • Loading branch information...
sanjioh committed Aug 6, 2018
1 parent dbbd3b8 commit a65fb58585680b16ee5552c128720b6e8f1bd19a
Showing with 29 additions and 15 deletions.
  1. +5 −0 .coveragerc
  2. +2 −2 requirements_test.txt
  3. +22 −13 tox.ini
@@ -0,0 +1,5 @@
[run]
branch = True

[report]
show_missing = True
@@ -1,5 +1,5 @@
-rrequirements.txt
mock
freezegun
nose2
coverage
pytest
coverage
35 tox.ini
@@ -1,27 +1,36 @@
[tox]
envlist =
py27
py34
py35
py36
flake8
isort
flake8
isort
py27
py34
py35
py36
coverage-report
skipsdist = True

[testenv]
setenv =
PYTHONWARNINGS = all
PYTHONWARNINGS = all
deps =
-rrequirements_test.txt
-rrequirements_test.txt
commands =
python -V
nose2 -v
coverage report --include="spid-testenv.py"
python -V
python -b -m coverage run \
--include spid-testenv.py \
--parallel-mode -m pytest -v {posargs}

[testenv:coverage-report]
deps = coverage
commands =
coverage combine
coverage report
skip_install = true

[testenv:flake8]
deps = flake8
commands = flake8 spid-testenv.py tests/test_spid_testenv.py
skip_install = True
deps=flake8
commands=flake8 spid-testenv.py tests/test_spid_testenv.py

[testenv:isort]
deps = isort

0 comments on commit a65fb58

Please sign in to comment.
You can’t perform that action at this time.