> It makes coverage reports? And they work with Django? Whow! Sure.
It uses Ned Batchelder's coverage module: http://www.nedbatchelder.com/code/modules/coverage.html Grab that, nose and the nose-django plugin, install the plugin with python setup.py develop (may need sudo, depending on your platform). Go to the examples directory in the plugin distribution, and run like this: nosetests -v --with-coverage --cover-package=project --with-doctest --with-django --django-settings=project.settings You should get something like: Doctest: project.zoo.models ... ok Doctest: project.zoo.models.Zoo ... ok Doctest: project.zoo.models.Zoo.__str__ ... ok Doctest: project.zoo.models.func ... ok project.tests.test_views.test_view_index ... ok Name Stmts Exec Cover Missing -------------------------------------------------- project 0 0 100% project.settings 18 18 100% project.urls 2 2 100% project.zoo 0 0 100% project.zoo.models 7 5 71% 37, 45 project.zoo.views 2 2 100% -------------------------------------------------- TOTAL 29 27 93% ---------------------------------------------------------------------- Ran 5 tests in 0.135s OK You can also stick all 1000 of those command-line opts in ENV, if long command lines aren't your thing. JP (My usual warning on the nose-django plugin: it's early alpha, it creates and drops databases or schemas, PLEASE don't use it with a settings file that points at your production database. I don't believe there are any data destroying bugs, but ... you know.) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
