diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..a8a239c --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source=faradayio diff --git a/.travis.yml b/.travis.yml index 79d802e..992e1e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,3 +15,5 @@ install: script: - ~/virtualenv/python3.5/bin/flake8 --exclude docs/ . - sudo ~/virtualenv/python3.5/bin/pytest tests/ + - sudo ~/virtualenv/python3.5/bin/python3 -m coverage run ~/virtualenv/python3.5/bin/pytest + - coveralls diff --git a/README.md b/README.md index 6a73501..97c5e9d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # faradayio Asynchronous input/output program linking a network interface and UART port for Faraday radios + +[![Build Status](https://travis-ci.org/FaradayRF/faradayio.svg?branch=master)](https://travis-ci.org/FaradayRF/faradayio) +[![Coverage Status](https://coveralls.io/repos/github/FaradayRF/faradayio/badge.svg?branch=master)](https://coveralls.io/github/FaradayRF/faradayio?branch=master) diff --git a/requirements.txt b/requirements.txt index b701641..a3fbc6f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,5 @@ scapy-python3==0.23 six==1.11.0 sliplib==0.3.0 sphinx-rtd-theme==0.2.4 +coveralls==1.2.0 +pytest-cov==2.5.1