Added test base and coverage report for codecov.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
codecov:
|
||||
branch: master
|
||||
bot: 'kevinmidboe-build'
|
||||
|
||||
coverage:
|
||||
precision: 2
|
||||
round: down
|
||||
range: '70.100'
|
||||
|
||||
comment: off
|
||||
@@ -0,0 +1,4 @@
|
||||
[run]
|
||||
omit =
|
||||
*/env/*,
|
||||
*/__init__.py
|
||||
@@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
python_files= tests.py test_*.py
|
||||
@@ -0,0 +1,5 @@
|
||||
-r requirements.txt
|
||||
|
||||
# dependencies for testing
|
||||
pytest>=3.2.5
|
||||
codecov>=1.4.0
|
||||
@@ -0,0 +1,5 @@
|
||||
def inc(x):
|
||||
return x + 1
|
||||
|
||||
def test_answer():
|
||||
assert inc(4) == 5
|
||||
Reference in New Issue
Block a user