The first two instructions work fine on windows as far as I know but the
first one won't because windows doesn't support setting environment
variables this way.
[1] https://docs.djangoproject.com/en/1.7/internals/contributing/writing-
code/unit-tests/#quickstart
--
Ticket URL: <https://code.djangoproject.com/ticket/23666>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 1 => 0
* stage: Unreviewed => Accepted
Comment:
I use "Git Bash" on Windows instead of tcmd.exe and the command above
works fine. Maybe we should recommend something like that?
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:1>
Comment (by aaugustin):
Yes, in my experience Git Bash is the least unusable option on Windows.
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:2>
Comment (by joeri):
The Windows (near) equivalent is to use with cmd.exe:
{{{
$ git clone https://github.com/django/django.git django-repo
$ cd django-repo\tests
$ set PYTHONPATH=..;%PYTHONPATH%
$ python runtests.py
}}}
The third line extends your PYTHONPATH with the parent directory for the
duration of the terminal session.
I added the python command in line 4, to use the one that is set in the
PATH rather than the one registered with Windows.
In my opinion the documentation doesn't need to have a Windows equivalent
of common bash commands.
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:3>
* owner: nobody => AnSavvides
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:4>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:5>
Comment (by AnSavvides):
Here is a link to my patch: [https://github.com/django/django/pull/4371]
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"118cae2df8c89b63a2dcecab0728e6199f101fa1" 118cae2]:
{{{
#!CommitTicketReference repository=""
revision="118cae2df8c89b63a2dcecab0728e6199f101fa1"
Fixed #23666 -- Recommended Git Bash for running unit tests on Windows.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23666#comment:7>