Merge pull request #54 from gcarq/fix-coverage

Fix coverage
This commit is contained in:
Michael Egger 2017-10-02 19:29:33 +02:00 committed by GitHub
commit 11f97ccf87
5 changed files with 6 additions and 3 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[run]
omit = freqtrade/tests/*

View File

@ -18,7 +18,7 @@ install:
- pip install coveralls
- pip install -r requirements.txt
script:
- coverage run --source=freqtrade setup.py test
- pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/
after_success:
- coveralls
notifications:

View File

@ -13,6 +13,7 @@ numpy==1.13.3
TA-Lib==0.4.10
pytest==3.2.2
pytest-mock==1.6.3
pytest-cov==2.5.1
# Required for plotting data
#matplotlib==2.0.2

View File

@ -2,4 +2,4 @@
test=pytest
[tool:pytest]
addopts = --pyargs freqtrade
addopts = --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/

View File

@ -13,7 +13,7 @@ setup(name='freqtrade',
packages=['freqtrade'],
scripts=['bin/freqtrade'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-mock'],
tests_require=['pytest', 'pytest-mock', 'pytest-cov'],
install_requires=[
'python-bittrex==0.1.3',
'SQLAlchemy==1.1.13',