#30415: Refactor runtests.py to allow using other test runners.
-----------------------------------+------------------------------------
     Reporter:  Daniel Hahler      |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by David Smith):

 Hi all,

 I've had a bit of a look at running the Django test suite with other test
 runners (pytest).

 One of the issues I've come accross is there are some classes which are
 designed to **only** be inherited but start with the word 'Test'. Pytest
 does not know this, tries to run them and fails. A name change for these
 would be required. Here is an example:

 
https://github.com/django/django/blob/8dabdd2cc559a66b519e2a88b64575d304b96ebe/tests/staticfiles_tests/cases.py#L95

 I'm happy to investigate pytest further but can I confirm that I've
 understood the ticket correctly (i.e. get the test suite running with
 pytest) and would these type of changes be welcome. I'm sure there will be
 other issues, but in addition to configuring a new test running it is
 likely to also result in some of the existing tests need to be renamed /
 refactored, (subtests ''could'' be an issue, for example).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30415#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.6ee123570bcf8e0378cb391d4ac18f38%40djangoproject.com.

Reply via email to