mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
Merge pull request #432 from flinz/coverage
Added coverage generation to testing, consumed by codecov in CI
This commit is contained in:
commit
5e340338b4
25
.coveragerc
Normal file
25
.coveragerc
Normal file
@ -0,0 +1,25 @@
|
||||
# .coveragerc to control coverage.py
|
||||
# following the example at http://nedbatchelder.com/code/coverage/config.html
|
||||
[run]
|
||||
branch = True
|
||||
include = helpdesk/*
|
||||
omit =
|
||||
*helpdesk/south_migrations/*
|
||||
*helpdesk/migrations/*
|
||||
|
||||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
pragma: no cover
|
||||
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
||||
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
||||
if __name__==.__main__.:
|
||||
|
||||
ignore_errors = True
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,5 +3,6 @@ dist
|
||||
django_helpdesk.egg-info
|
||||
docs/html/*
|
||||
docs/doctrees/*
|
||||
.coverage
|
||||
.project
|
||||
.pydevproject
|
@ -18,7 +18,13 @@ matrix:
|
||||
|
||||
install:
|
||||
- pip install argparse
|
||||
- pip install coverage
|
||||
- pip install codecov
|
||||
- pip install -q Django==$DJANGO
|
||||
- pip install -q -r requirements.txt
|
||||
|
||||
script: python quicktest.py helpdesk
|
||||
script:
|
||||
- coverage run --source='.' quicktest.py helpdesk
|
||||
|
||||
after_success:
|
||||
- codecov
|
@ -4,6 +4,9 @@ django-helpdesk - A Django powered ticket tracker for small businesses.
|
||||
.. image:: https://travis-ci.org/django-helpdesk/django-helpdesk.png?branch=master
|
||||
:target: https://travis-ci.org/django-helpdesk/django-helpdesk
|
||||
|
||||
.. image:: https://codecov.io/gh/django-helpdesk/django-helpdesk/branch/master/graph/badge.svg
|
||||
:target: https://codecov.io/gh/django-helpdesk/django-helpdesk
|
||||
|
||||
Copyright 2009- Ross Poulton and contributors. All Rights Reserved. See LICENSE for details.
|
||||
|
||||
django-helpdesk was formerly known as Jutda Helpdesk, named after the
|
||||
@ -98,7 +101,4 @@ https://www.transifex.com/django-helpdesk/django-helpdesk/
|
||||
|
||||
Feel free to request access to contribute your translations.
|
||||
|
||||
Pull requests for all other changes are welcome. We're currently trying to add test cases wherever possible, so please continue to include tests with pull requests.
|
||||
|
||||
.. image:: https://secure.travis-ci.org/django-helpdesk/django-helpdesk.png?branch=master
|
||||
:target: https://travis-ci.org/django-helpdesk/django-helpdesk
|
||||
Pull requests for all other changes are welcome. We're currently trying to add test cases wherever possible, so please continue to include tests with pull requests.
|
Loading…
Reference in New Issue
Block a user