django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

Modify runtests.py so that it's possible to run tests individually, or per class, etc...

Open lovelydinosaur opened this issue 15 years ago • 2 comments

It'd be super useful if we could run just a subset of tests from the runtests script. The place to start with that might be to take a look at django's own runtests script: http://code.djangoproject.com/browser/django/trunk/tests/runtests.py Although there seems to be vastly more in there than we actually need.

lovelydinosaur avatar May 12 '11 15:05 lovelydinosaur

how about:: $ python djangorestframework/runtests/runtests.py ThrottlingTests[.test_method]

to run the test methods that live in the ThrottlingTests or only a single method? Like documented here: https://docs.djangoproject.com/en/dev/topics/testing/#django.test.simple.DjangoTestSuiteRunner.run_tests

markotibold avatar Jun 10 '11 18:06 markotibold

Fixed. Pullrequest submitted

markotibold avatar Jun 10 '11 22:06 markotibold