mirror of
https://github.com/pyro2927/SouthwestCheckin.git
synced 2025-12-06 01:13:19 +00:00
Adding pytest coverage
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*.swp
|
*.swp
|
||||||
.cache/
|
.cache/
|
||||||
|
.coverage
|
||||||
13
.travis.yml
13
.travis.yml
@@ -1,8 +1,17 @@
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
language: python
|
language: python
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- CC_TEST_REPORTER_ID=3d0abe23b60c405d5de7e038f366649a8002c4ccedccabad3da0e3b3e9b5049b
|
||||||
python:
|
python:
|
||||||
- "2.7.15"
|
- "2.7.15"
|
||||||
- "3.7.1"
|
- "3.7.1"
|
||||||
|
before_script:
|
||||||
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||||
|
- chmod +x ./cc-test-reporter
|
||||||
|
- ./cc-test-reporter before-build
|
||||||
script:
|
script:
|
||||||
- pytest
|
- pytest --cov=southwest --cov=checkin --cov=openflights
|
||||||
- pycodestyle *.py --show-source --ignore=E501
|
- pycodestyle *.py --show-source --ignore=E501
|
||||||
|
after_script:
|
||||||
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
|
coverage
|
||||||
datetime
|
datetime
|
||||||
docopts
|
docopts
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pytest
|
pytest
|
||||||
|
pytest-cov
|
||||||
pytest-mock
|
pytest-mock
|
||||||
python-dateutil
|
python-dateutil
|
||||||
pytz
|
pytz
|
||||||
|
|||||||
Reference in New Issue
Block a user