Skip to content

Commit 7c5d169

Browse files
committed
Added tox.ini
1 parent 0b2d16d commit 7c5d169

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ Tests
108108

109109
**Run unit-tests:**
110110

111-
$ py.test
111+
In order to run full test suite, simply execute:
112112

113-
**NOTE**: Requires `py.test`, install by `pip install pytest`
113+
$ tox
114+
115+
**NOTE**: Requires `tox` ( please install with `pip install tox` ) and several supported versions of Python.
114116

115117

116118
**Run integration tests:**

tests/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Unit tests
22
==========
33

4-
Run from top-level directory with:
4+
From top-level directory run:
55

6-
py.test
6+
$ tox
77

8+
**NOTE**: This requires `tox` ( please install with `pip install tox` ) and several supported versions of Python.

tox.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tox]
2+
envlist = flake8,py27,py34,py35
3+
4+
[testenv]
5+
deps = pytest
6+
commands = py.test
7+
8+
[testenv:flake8]
9+
deps = flake8
10+
commands = flake8
11+
12+
[pytest]
13+
testpaths = tests
14+
15+
[flake8]
16+
exclude = venv,env,.env,.tox,.toxenv,.git,build,docs
17+
max-line-length = 119
18+
accept-encodings = utf-8

0 commit comments

Comments
 (0)