Added test base and coverage report for codecov.

This commit is contained in:
2017-11-19 00:26:51 +01:00
parent dd7885ad57
commit d12ef55ef8
6 changed files with 26 additions and 0 deletions

10
.codecov.yml Normal file
View File

@@ -0,0 +1,10 @@
codecov:
branch: master
bot: 'kevinmidboe-build'
coverage:
precision: 2
round: down
range: '70.100'
comment: off

4
.coveragerc Normal file
View File

@@ -0,0 +1,4 @@
[run]
omit =
*/env/*,
*/__init__.py

2
.pytest.ini Normal file
View File

@@ -0,0 +1,2 @@
[pytest]
python_files= tests.py test_*.py

5
requirements-dev.txt Normal file
View File

@@ -0,0 +1,5 @@
-r requirements.txt
# dependencies for testing
pytest>=3.2.5
codecov>=1.4.0

View File

View File

@@ -0,0 +1,5 @@
def inc(x):
return x + 1
def test_answer():
assert inc(4) == 5