Skip to content
Merged

Tox #53

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added tox.ini
  • Loading branch information
mieciu committed Nov 14, 2016
commit 7c5d1698235f6b1c1ac49f1574d8d9586ef31a67
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ Tests

**Run unit-tests:**

$ py.test
In order to run full test suite, simply execute:

**NOTE**: Requires `py.test`, install by `pip install pytest`
$ tox

**NOTE**: Requires `tox` ( please install with `pip install tox` ) and several supported versions of Python.


**Run integration tests:**
Expand Down
5 changes: 3 additions & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Unit tests
==========

Run from top-level directory with:
From top-level directory run:

py.test
$ tox

**NOTE**: This requires `tox` ( please install with `pip install tox` ) and several supported versions of Python.
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
envlist = flake8,py27,py34,py35

[testenv]
deps = pytest
commands = py.test

[testenv:flake8]
deps = flake8
commands = flake8

[pytest]
testpaths = tests

[flake8]
exclude = venv,env,.env,.tox,.toxenv,.git,build,docs
max-line-length = 119
accept-encodings = utf-8