0

My Django project has ~300 unit tests. I want to see all the URLs (and HTTP methods - GET/POST/etc) that have been used in the course of unit testing.

The end goal is to produce two (nose) coverage reports:

  • coverage of all the URLS defined in the various urls.py files
  • coverage of my Swagger API

Before I go digging into the Django source code, I'm wondering if anyone knows if this is already done for free by some Django object, or if not, a good hint at where to start prodding around.

sjbrown
  • 562
  • 3
  • 5
  • 1
    http://stackoverflow.com/questions/9403194/django-test-suite-url-coverage This helps? – iMom0 Dec 20 '13 at 02:56
  • Thank you for this. I ended up creating a Django Middleware class, much in the same style as shown here: https://djangosnippets.org/snippets/2694/ – sjbrown Feb 28 '14 at 18:18

1 Answers1

0

Have a look at django-request. Maybe it can solve your problem.

Dragos C
  • 363
  • 3
  • 7