Skip to content

Commit

Permalink
Add tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mattack108 committed Jun 22, 2014
1 parent 3a76616 commit 40b0226
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source = pipin.py
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ python:
- "3.4"
install:
- "python setup.py install"
- "pip install coveralls"
script: "python setup.py test"
after_success: "coveralls"
notifications:
email: false
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ help:
@echo "Usage:"
@echo " make release | Release to PyPI."
@echo " make test | Run the tests."
@echo " make test-nocov | Run the tests without coverage."

release:
python setup.py register sdist upload

test:
@coverage run ./setup.py test
@coverage report --show-missing

test-nocov:
python setup.py test
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ Let's *pipin*!

You could probably handle same needs with ``ack`` or ``grep``, but ``pipin`` is less characters to write, colorizes the output nicely etc.

.. image:: http://img.shields.io/pypi/v/pipin.svg?style=flat
:target: https://pypi.python.org/pypi/pipin

.. image:: http://img.shields.io/travis/mattack108/pipin.svg?style=flat
:target: https://travis-ci.org/mattack108/pipin

.. image:: http://img.shields.io/pypi/dm/pipin.svg?style=flat
:target: https://pypi.python.org/pypi/pipin
.. image:: http://img.shields.io/coveralls/mattack108/pipin/master.svg?style=flat
:target: https://coveralls.io/r/mattack108/pipin?branch=master

.. image:: http://img.shields.io/pypi/v/pipin.svg?style=flat
.. image:: http://img.shields.io/pypi/dm/pipin.svg?style=flat
:target: https://pypi.python.org/pypi/pipin

Requirements
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run_tests(self):
'your project(s).',
install_requires=install_requires,
cmdclass={'test': PyTest},
tests_require=['pytest'],
tests_require=['coverage', 'pytest'],
entry_points={
'console_scripts': [
'pipin = pipin:run',
Expand Down

0 comments on commit 40b0226

Please sign in to comment.