From c02dd738a54d28d694ccc2c28f9c5b7c3424326f Mon Sep 17 00:00:00 2001 From: Johann Bauer Date: Mon, 7 Nov 2016 22:11:22 +0100 Subject: [PATCH] Collect test coverage statistics --- .travis.yml | 5 ++++- README.rst | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4729f1d..54f6b7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,8 @@ install: - pip install lmdb - pip install plyvel - pip install pyrocksdb + - pip install pytest-cov + - pip install python-coveralls # command to run tests -script: pytest \ No newline at end of file +script: pytest --cov=server --cov=lib +after_success: coveralls \ No newline at end of file diff --git a/README.rst b/README.rst index ea75618..dbc47f6 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,8 @@ .. image:: https://travis-ci.org/kyuupichan/electrumx.svg?branch=master :target: https://travis-ci.org/kyuupichan/electrumx +.. image:: https://coveralls.io/repos/github/kyuupichan/electrumx/badge.svg + :target: https://coveralls.io/github/kyuupichan/electrumx + ElectrumX - Reimplementation of Electrum-server ===============================================