Add coveralls integration

No use mirrors

Enforce coverage3

Add coverage badge and use python -m to invoke coverage

Enforce pip3, remove SyntaxError reported line

Use develop branch for coverage status
This commit is contained in:
Abhinav Singh 2019-08-25 10:31:42 -07:00
parent 3a371f2d6f
commit fcfbec4760
6 changed files with 12 additions and 5 deletions

View File

@ -22,3 +22,4 @@ Makefile
setup.py
tests.py
ProxyPy.png
requirements-testing.txt

View File

@ -9,6 +9,7 @@ matrix:
os: osx
osx_image: xcode11
language: shell
python: 3.7
- name: "Python 3.7 on Windows"
os: windows
language: shell
@ -18,4 +19,8 @@ matrix:
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- TESTING_ON_TRAVIS=1
script: python3 tests.py || python tests.py
install:
- pip3 install -r requirements-testing.txt
script: python3 -m coverage run tests.py || python -m coverage run tests.py
after_success:
- coveralls

View File

@ -31,8 +31,8 @@ release: package
twine upload dist/*
coverage:
coverage run tests.py
coverage html
coverage3 run tests.py
coverage3 html
open htmlcov/index.html
flake8:

View File

@ -1,6 +1,6 @@
[![Proxy.Py](ProxyPy.png)](https://github.com/abhinavsingh/proxy.py)
[![alt text](https://travis-ci.org/abhinavsingh/proxy.py.svg?branch=develop "Build Status")](https://travis-ci.org/abhinavsingh/proxy.py/)
[![alt text](https://travis-ci.org/abhinavsingh/proxy.py.svg?branch=develop "Build Status")](https://travis-ci.org/abhinavsingh/proxy.py/) [![Coverage Status](https://coveralls.io/repos/github/abhinavsingh/proxy.py/badge.svg?branch=develop)](https://coveralls.io/github/abhinavsingh/proxy.py?branch=develop)
Features
--------

View File

@ -1,3 +1,4 @@
python-coveralls==2.9.3
coverage==4.5.2
flake8==3.7.8
twine==1.12.1

View File

@ -880,7 +880,7 @@ class TestMain(unittest.TestCase):
class TestHttpRequestRejected(unittest.TestCase):
def setUp(self) -> None:
def setUp(self):
self.request = proxy.HttpParser(proxy.HttpParser.types.REQUEST_PARSER)
def test_empty_response(self):