Skip to content

Commit a7df180

Browse files
committed
Configuring test runner to work with codecov
1 parent 191de6b commit a7df180

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[aliases]
2+
test=pytest
3+
4+
[tool:pytest]
5+
addopts = --ignore=epanet-module/

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ def run(self):
6868
'install': InstallCmd,
6969
'develop': DevelopCmd
7070

71-
}
71+
},
72+
setup_requires=["pytest-runner"],
73+
tests_require=["pytest"]
7274
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ deps =
1414
PyYAML
1515
coveralls
1616
commands =
17-
coverage run --source=epanet_python pytest epanet_python
17+
coverage run --source=epanet_python setup.py test
1818
coveralls

0 commit comments

Comments
 (0)