Added test base and coverage report for codecov.
This commit is contained in:
10
.codecov.yml
Normal file
10
.codecov.yml
Normal 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
4
.coveragerc
Normal file
@@ -0,0 +1,4 @@
|
||||
[run]
|
||||
omit =
|
||||
*/env/*,
|
||||
*/__init__.py
|
||||
2
.pytest.ini
Normal file
2
.pytest.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
python_files= tests.py test_*.py
|
||||
5
requirements-dev.txt
Normal file
5
requirements-dev.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
-r requirements.txt
|
||||
|
||||
# dependencies for testing
|
||||
pytest>=3.2.5
|
||||
codecov>=1.4.0
|
||||
0
torrentSearch/tests/__init__.py
Normal file
0
torrentSearch/tests/__init__.py
Normal file
5
torrentSearch/tests/test_sample.py
Normal file
5
torrentSearch/tests/test_sample.py
Normal file
@@ -0,0 +1,5 @@
|
||||
def inc(x):
|
||||
return x + 1
|
||||
|
||||
def test_answer():
|
||||
assert inc(4) == 5
|
||||
Reference in New Issue
Block a user