From 1fdf8d76dd6a4fc680f15c21806e38692c471c6a Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 5 Aug 2014 17:27:29 +0300 Subject: [PATCH] add tests coverage --- .travis.yml | 8 ++++++-- tests/run.py | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 tests/run.py diff --git a/.travis.yml b/.travis.yml index deb235b..c25827a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,12 @@ language: python python: - "2.7" -install: +install: - "pip install ." - "pip install -r requirements.txt" + - "pip install coveralls" -script: py.test -vvv +script: coverage run --source=amodem tests/run.py + +after_success: + - coveralls diff --git a/tests/run.py b/tests/run.py new file mode 100644 index 0000000..0542d25 --- /dev/null +++ b/tests/run.py @@ -0,0 +1,2 @@ +import pytest +pytest.main()