Skip to content

Commit 5e84b5b

Browse files
adamchainzryansb
authored andcommitted
Test with tox
Simpler and more predictable than self-managing a virtualenv. I've set it up to allow arguments to be passed through to `pytest` by running e.g. `tox -- -f`.
1 parent e9832d2 commit 5e84b5b

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = .tox/*

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
22
looponfailroots = .
3-
addopts = --cov .
3+
addopts = --cov-config .coveragerc --cov .
44
#addopts = --cov . --cov-report=html -f

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tox]
2+
envlist = py27
3+
4+
[testenv]
5+
deps = -rtest-requirements.txt
6+
commands = pytest {posargs}

0 commit comments

Comments
 (0)