#23026 closed Bug (invalid)

Running a testcase

Reported by: amertkara@… Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords: Nosetests
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the documentation https://docs.djangoproject.com/en/1.5/topics/testing/overview/, running a testcase is given as ./manage.py test animals.AnimalTestCase which is inaccurate. Running a testcase class is possible "./manage.py test animals:AnimalTestCase" or ./manage.py test animals.AnimalTestCase.test_animals_can_speak.

Change History (1)

comment:1 Changed 13 months ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The documentation you have referenced is for Django 1.5, which used "old style" test discovery; if you're using Django 1.5, the syntax described is completely accurate. The syntax changed in Django 1.6, and the 1.6 docs reflect that change.

The "colon" syntax is not accurate for any version, AFAIK - to the best of my knowledge, that's a Nose extension, and has nothing to do with Django's test suite.

Note: See TracTickets for help on using tickets.
Back to Top