Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
1afe9133
Commit
1afe9133
authored
May 18, 2017
by
Angel Velásquez
Committed by
GitHub
May 18, 2017
Browse files
Merge pull request #17 from jelly/coverage
README: describe running unit tests / coverage
parents
a9dcbbd1
5922d932
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
1afe9133
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
README.md
View file @
1afe9133
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment