Skip to content
This repository has been archived by the owner on Aug 18, 2018. It is now read-only.

Commit

Permalink
Travis-ci and Coveralls added
Browse files Browse the repository at this point in the history
.travis.yml fixed

.travis.yml fixed

Coverage now run test on all the unittest in neubot_runtime

Encoding fix
  • Loading branch information
helloimcarmine authored and bassosimone committed Nov 30, 2015
1 parent 749e34e commit 2326250
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.pyc
*.swp
*.coverage
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
install: pip install coveralls unittest2
script: coverage run -m unittest2 discover neubot_runtime/
after_success: coveralls
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Neubot runtime

[![Build Status](https://travis-ci.org/neubot/neubot-runtime.svg?branch=master)](https://travis-ci.org/neubot/neubot-runtime) [![Coverage Status](https://coveralls.io/repos/neubot/neubot-runtime/badge.svg?branch=master)](https://coveralls.io/r/neubot/neubot-runtime?branch=master)

Neubot is a piece of software to measure internet performance from the
edges developed at the Nexa Center for Internet & Society, a research center
at the Dept. of Computer and Control Engineering at Politecnico di Torino.
Expand Down
4 changes: 2 additions & 2 deletions neubot_runtime/test_utils_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def on_visit_called(*args):

components = ['bar', 'baz', 'barbar', 'bazbaz']
utils_path.depth_visit('/foo', components, on_visit_called)
self.assertEquals(visit_order, expected)
self.assertEqual(visit_order, expected)

def test__7(self):
''' Make sure that depth_visit() correctly flags the leaf node '''
Expand Down Expand Up @@ -138,7 +138,7 @@ class TestPossiblyDecode(unittest.TestCase):
def test_nonascii_bytes(self):
''' Test possibly_decode() with unicode bytes input '''
self.assertEqual(
utils_path.possibly_decode('cio\xc3\xa8', 'utf-8'),
utils_path.possibly_decode(six.b('cio\xc3\xa8'), 'utf-8'),
six.u("cio\xe8")
)

Expand Down

0 comments on commit 2326250

Please sign in to comment.