Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 1d549ad

Browse files
balestrincCamila Balestrin
authored and
Camila Balestrin
committed
add coverage on tox
1 parent ab50112 commit 1d549ad

File tree

7 files changed

+41
-1
lines changed

7 files changed

+41
-1
lines changed

.coveragerc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = *test*

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ nosetests.xml
4141
.mr.developer.cfg
4242
.project
4343
.pydevproject
44+
45+
#coverage
46+
coverage.xml
47+
.coverage
48+
49+
#virtualenv
50+
env
51+
52+
#pycharm
53+
.idea
54+
.idea/

examples/__init__.py

Whitespace-only changes.

hpOneView/test/__init__.py

Whitespace-only changes.

hpOneView/test/unit/__init__.py

Whitespace-only changes.

test_requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mock == 2.0.0

tox.ini

+27-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,38 @@
33
# test suite on all supported python versions. To use it, "pip install tox"
44
# and then run "tox" from this directory.
55

6+
67
[tox]
7-
envlist = py27, py33, py34, flake8
8+
envlist = py27, py34, py27-flake8, py27-coverage
89
skip_missing_interpreters = true
910

1011
[flake8]
1112
ignore = E402,E501
1213
max-line-length = 160
1314
exclude = tests.py
1415
max-complexity = 10
16+
17+
[testenv]
18+
deps =
19+
-r{toxinidir}/test_requirements.txt
20+
commands =
21+
{envpython} -m unittest discover
22+
23+
[testenv:py27-coverage]
24+
basepython =
25+
python2.7
26+
deps =
27+
-r{toxinidir}/test_requirements.txt
28+
coverage
29+
commands =
30+
coverage erase
31+
coverage run -m unittest discover
32+
coverage xml
33+
34+
[testenv:py27-flake8]
35+
basepython =
36+
python2.7
37+
deps =
38+
flake8
39+
commands =
40+
flake8 {posargs} hpOneView/

0 commit comments

Comments
 (0)