To check the code coverage of the unit tests on web, this patch
add integration of Coveralls.io (https://coveralls.io/).

Usage:
  1. Sign in to Coveralls.io with your GitHub account.
  2. Add repos at your account page.
  3. Execute tests on Travis-CI.

Signed-off-by: IWASE Yusuke <[email protected]>
---
 .travis.yml | 5 ++++-
 tox.ini     | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 9c352b0..76eb198 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,9 +10,12 @@ env:
   - TOX_ENV=pep8
 
 install:
-  - "pip install tox"
+  - pip install tox coveralls
 
 script:
   - NOSE_VERBOSE=0 tox -e $TOX_ENV
 
+after_success:
+  - coveralls
+
 sudo: false
diff --git a/tox.ini b/tox.ini
index f927e65..321b706 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,7 +9,7 @@ deps = -U
 usedevelop = True
 passenv= NOSE_VERBOSE
 commands =
-  python ryu/tests/run_tests.py '{posargs}'
+  coverage run --source=ryu ryu/tests/run_tests.py '{posargs}'
 
 [testenv:pep8]
 commands =
-- 
2.7.4


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to