Skip to content

Commit

Permalink
add: test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Houwu committed Apr 20, 2014
1 parent 7e0b72c commit b40ddd9
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[run]
source = pyethereum

To exclude parts of your source from coverage, for example migrations folders:

[report]
omit = */dispatch/*

[report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ __pycache__/
.installed.cfg
logging.conf
.*.log
.coverage
/statedb/
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ install:

script:
- tox -e $TOX_ENV

after_success:
coveralls
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Ethereum Python Client
.. image:: https://travis-ci.org/ethereum/pyethereum.png?branch=master
:target: https://travis-ci.org/ethereum/pyethereum

.. image:: https://coveralls.io/repos/ethereum/pyethereum/badge.png
:target: https://coveralls.io/r/ethereum/pyethereum


Install
=========
Python2.7 is required.
Expand All @@ -25,7 +29,7 @@ one-liner:

``curl http://downloads.buildout.org/2/bootstrap.py | python``

If your system has ``wget`` and not ``curl`` you can also use ``wget -O -``
If your system has ``wget`` and not ``curl`` you can also use ``wget -O -``
in place of ``curl``. Otherwise download the `bootstrap script <http://downloads.buildout.org/2/bootstrap.py>`_
into the project folder and call ``python bootstrap.py``. (If you get setuptools issue, try
``python bootstrap.py -v 2.1.1``)
Expand Down Expand Up @@ -89,7 +93,7 @@ If you need a more advanced setup, have a look at the

**Easy Debugging:**
The ``eth.py`` script, understands a command line flag for easy debugging, e.g.::

pyethereum/eth.py -L pyethereum.wire:DEBUG,:INFO ...<other args>

will set the log-level for ``wire`` to ``DEBUG`` and the root logger to ``INFO``.
Expand Down
1 change: 1 addition & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
behave
mock
coveralls
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ envlist = py27
deps=
behave
mock
commands=behave []
coveralls
commands=coverage run {envbindir}/behave []
sitepackages=False

0 comments on commit b40ddd9

Please sign in to comment.