Ticket #16817: 16817.runtests-coverage.diff

File 16817.runtests-coverage.diff, 1.4 KB (added by julien, 4 years ago)

Coverage.py conf file to make the process easier

  • .gitignore

    diff --git a/.gitignore b/.gitignore
    index a34f512..f0090b0 100644
    a b  
    22*.pot
    33*.py[co]
    44docs/_build/
     5tests/coverage_html/
     6tests/.coverage
     7 No newline at end of file
  • .hgignore

    diff --git a/.hgignore b/.hgignore
    index 765a29d..3dc253a 100644
    a b syntax:glob 
    44*.pot
    55*.py[co]
    66docs/_build/
     7tests/coverage_html/
     8tests/.coverage
     9 No newline at end of file
  • docs/internals/contributing/writing-code/unit-tests.txt

    diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt
    index cffcbd9..7c58b3e 100644
    a b To run tests for just one contrib app (e.g. ``markup``), use the same 
    166166method as above::
    167167
    168168    ./runtests.py --settings=settings markup
     169
     170Code coverage
     171~~~~~~~~~~~~~
     172
     173[A short guide may go here...]
     174 No newline at end of file
  • new file tests/.coveragerc

    diff --git a/tests/.coveragerc b/tests/.coveragerc
    new file mode 100644
    index 0000000..e03dbd1
    - +  
     1[run]
     2omit = runtests,test_sqlite,regressiontests*,modeltests*,*/django/contrib/*/tests*,*/django/utils/unittest*,*/django/utils/simplejson*,*/django/utils/importlib.py,*/django/test/_doctest.py,*/django/core/servers/fastcgi.py,*/django/utils/autoreload.py,*/django/utils/dictconfig.py
     3
     4[html]
     5directory = coverage_html
     6 No newline at end of file
Back to Top