Setting Up Coveralls for Django Project

Reading Time : ~ .

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...

    By Posted On
SENIOR DEVELOPER at MICROPYRAMID

Need any Help in your Project?Let's Talk

Latest Comments
Related Articles
Preserve file names with sorl for better SEO Ashwin Kumar

We use sorl-thumbnail for scaling images by keeping the original one intact. Sorl proven to be great tool for generating different sized images throughout website. ...

Continue Reading...
Sendgrid Inbound Email Parsing with django Nikhila Mergu

Using the Inbound parse webhook, we can parse the contents, attachments of an incoming email.

Inbound Parse API follows 3 steps:
1. sending an ...

Continue Reading...
Sending emails using sendgrid on heroku for a Django App Vinisha Naladala

Integrate Sendgrid API to your Heroku app to deliver simplified emails like any notification emails, user signups etc.

Continue Reading...

Subscribe To our news letter

Subscribe to our news letter to receive latest blog posts into your inbox. Please fill your email address in the below form.
*We don't provide your email contact details to any third parties