#29704: manage.py test does not always accept test-runner specific command line options -------------------------------------+------------------------------------- Reporter: Matthijs | Owner: nobody Kooijman | Type: Bug | Status: new Component: Core | Version: master (Management commands) | Severity: Normal | Keywords: Triage Stage: | Has patch: 1 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- The testrunner that is used can define an `add_arguments()` method to specify additional commandline arguments for the `test` management command. To make this work even when the testrunner to be used is specified on the commandline, the `test` command prescans the commandline for the `--testrunner` option, to call the runner's `add_arguments()` before the actual commandline parsing happens.
Previously, the prescanning only considers options looking like `--testrunner=foo`, while the real parsing also accepts options like `--testrunner foo`. In the latter case, additional arguments defined by the testrunner are not be accepted. A PR is available here, which includes testcases showing the problem: https://github.com/django/django/pull/10307 -- Ticket URL: <https://code.djangoproject.com/ticket/29704> 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 post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/059.4f71648704f8e789ebdf3ed10bdf8d7a%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.