Commit 1afe9133 authored by Angel Velásquez's avatar Angel Velásquez Committed by GitHub
Browse files

Merge pull request #17 from jelly/coverage

README: describe running unit tests / coverage
parents a9dcbbd1 5922d932
language: python
python:
- "2.7"
install: "pip install -r requirements.txt"
install: "pip install -r requirements.txt && pip install coveralls"
script:
- python manage.py collectstatic --noinput
- python manage.py test
- coverage run --omit='env*' --source='.' manage.py test
after_success:
- coveralls
......@@ -85,6 +85,20 @@ required. A simple debugging SMTP server can be setup using Python.
In local_settings.py change the EMAIL_HOST to 'localhost' and the EMAIL_PORT to
1025.
# Running tests and coverage
To the unittests execute the following commands:
./manage.py collectstatic --noinput
./manage.py test
Running coverage:
pip install coverage
coverage run --omit='env*' --source='.' manage.py test
coverage report
# Production Installation
Ask someone who knows, or you are going to be in trouble.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment