Setting Up Coveralls for Django Project

Why coveralls?
Coveraslls will check the code coverage for your Django project test cases. To use coveralls.io your code must be hosted on GitHub or BitBucket.

install coveralls

   pip install coveralls

Using Travis
If you are using Travis for you CI. add below script in .travis.yml file in project root folder

language: python

# python versions
python:
  - "3.4"
  - "2.7.4"

env:
  -DJANGO=1.8 DB=sqlite3

# install requirements
install:
  - pip install -r requirements.txt
  - pip install coveralls

# To run tests
script:
  - coverage run --source=my_app1, my_app2 manage.py test

# send coverage report to coveralls
after_success:
  coveralls

Signup with GitHub in https://coveralls.io/ and activate coveralls for you repo.

Thats it. Happy Testing...

Posted On 28 May 2014 By MicroPyramid


Need any Help in your Project?Let's Talk

Latest Comments
Related Articles
Extract data from PDF and all Microsoft Office files in python

The quick way to get/extract text from PDFs in Python is with the Python library "slate". Slate is a Python package that simplifies the process ...

Continue Reading...
Custom Password Less Authentication in Django

Authentication backends allow the ability to change what method checks your users credentials.

For web services, ie Facebook authentication, you don't have access to user ...

Continue Reading...
E-commerce (paypal) integration with Django

E-commerce is integration is becoming almost essential for every web application now a days. There are so many payment gateways to integrate with our application. ...

Continue Reading...
open source packages

Subscribe To our news letter

Subscribe and Stay Updated about our Webinars, news and articles on Django, Python, Machine Learning, Amazon Web Services, DevOps, Salesforce, ReactJS, AngularJS, React Native.
* We don't provide your email contact details to any third parties