I remember seeing a nice writeup on using nose with django, which is
both a test runner and a code coverage tool. I can't find it at the
moment, but there's these:
http://code.google.com/p/nose-django/
http://code.djangoproject.com/wiki/CookBookTestingTools
http://blogs.translucentcode.org/mick/2
Have it all working now, am about to update #2720
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe fro
Hi, thanks for looking at this, it's a lot of words/work for a minor
issue- getting db foreign key constraints working in an M2M edge case.
I'm working on my first patch. It's actually a patch to a patch,
#2720, which exposes an issue that came up with an inter-app M2M
field. _get_many_to_many_sq
Here's how to run all doctests in a directory:
$ manage.py shell
import re
import os
import string
from doctest import testmod
django_dir=r'/path/to/source/'
trim=len(django_dir)
dots=string.maketrans(r'\/','..')
init=re.compile(r'\.?\.__init__')
skip=('django.bin.make-messages','django.contrib
Right, I already figured out the "runtests.py" suite, what I'm looking
for now is running all the doctests (such as those in
django/utils/text.py's get_valid_filename, get_text_list, smart_split -
and many other of django's source files)
--~--~-~--~~~---~--~~
You
Hello,
Is there a handy one-liner to run all the doctests in django? (I
checked out the trunk, have already run the unit tests with
"runtests.py" in the root "tests" directory, getting all the modeltests
and regressiontests. Looking to execute the rest of the tests before I
start hacking around!)