Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm assuming that you are done with <a href="http://docs.djangoproject.com/en/dev/topics/testing/">Testing Django Applications</a>. With the right set of helper tools you should be fine with the default unit testing using Django test framework.</p> <p>To get you started with measuring coverage you might want to look into <a href="http://pypi.python.org/pypi/coverage">coverage</a> standalone to figure out what you have tested.</p> <p>Once installed, you can do something like this:</p> <pre><code>$ coverage run manage.py test *yourapp* </code></pre> <p>It will create <code>.coverage</code> file for you. You can format the data from this file with </p> <pre><code>$ coverage report </code></pre> <p>to get a full list on testing coverage (including code from other python libraries). You can easily <code>coverage report --omit path</code> modules that start with particular paths. Additionally you would be able to see the lines that were not executed during the test run with <code>-m</code> option.</p> <p>Also, I think there is a <code>django_coverage</code> Django application that integrates <code>coverage</code> into testing for Django project. It makes nice HTML coverage reports for you.</p> <p>Now there are other tools like twill, etc. to address specific needs (like javascript testing). </p> <p>Also, if you want to go through the detailed baby steps of setting up vanilla testing under Django, you may want to read "Django 1.1 Testing and Debugging" (lookup on Amazon).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload