diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..b8902ad5 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[run] +source = backdrop + +[report] +include = backdrop/* diff --git a/.travis.yml b/.travis.yml index a31d0651..b50b1577 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,14 @@ python: # Need mongodb for testing services: mongodb # command to install dependencies -install: "pip install -r requirements_for_tests.txt --use-mirrors" +install: "pip install -q -r requirements_for_tests.txt --use-mirrors" # command to run tests -script: nosetests && behave && ./pep-it.sh +script: + - nosetests --with-coverage --cover-inclusive + - behave + - ./pep-it.sh +after_script: + - coveralls branches: except: - master diff --git a/requirements_for_tests.txt b/requirements_for_tests.txt index 3b608b06..3334732d 100644 --- a/requirements_for_tests.txt +++ b/requirements_for_tests.txt @@ -2,6 +2,7 @@ argcomplete==0.4.0 behave==1.2.2 coverage==3.6 +coveralls mock==1.0.1 nose==1.3.0 pep8==1.4.5