-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
32 lines (28 loc) · 901 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# This file is set up for environments of the form:
# py{*}-{test,nose}[-coverage]
# Though the env-list is more restricted so that tox without parameters runs
# something sensible.
[tox]
envlist = py{27,3}
[testenv:py27]
commands =
coverage run --source=./nmoscommon -m unittest discover -s tests
coverage annotate
coverage report
deps =
coverage
mock < 4.0.0
install_command = pip install {opts} {packages}
[testenv:py3]
commands =
coverage run --source=./nmoscommon -m unittest discover -s tests
coverage annotate
coverage report
deps =
coverage
mock < 4.0.0
install_command = pip install {opts} {packages}