I use `--keepdb` a lot, I never knew there was a shorthand and
even know I do know wouldn't use it. For things like this I
usually find it easy to remember the long option. So I'm +1 on
changing it too, without a new shorthand for `--keepdb`. In the
keyword usage `-k` must be followed by a keyword, so for people
who did use it the shorthand, the old usage will break loudly
which is good.
On 11/03/2019 15:13, François Freitag wrote:
--Hi Django Devs, https://code.djangoproject.com/ticket/30245 suggests supporting Python unittest `-k` option, to selectively run tests matching a keyword.Currently, `-k` is the shorthand for `--keepdb` in Django. A `--filter` flag was suggested to preserve backward compatibility. Carlton suggested removing the `-k` option from `--keepdb` and reusing it for unittest `-k`. That would follow unittest more closely, reduce user confusion and ease maintenance. What do you think is best? Do you see other options? If re-taking the `-k` option for unittest `-k`, should a new shorthand be introduced for `--keepdb`? Thanks for your time, François
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/ffdefe87-33f9-05c6-ee61-30087deee517%40cantab.net.
For more options, visit https://groups.google.com/d/optout.
- Support for unittest -k option François Freitag
- Re: Support for unittest -k option Carlton Gibson
- Re: Support for unittest -k option Luke Plant