#2879: Add live test server support to test framework
-------------------------------------+-------------------------------------
     Reporter:  Mikeal Rogers        |                    Owner:  devin
  <mikeal@…>                         |                   Status:  new
         Type:  New feature          |                  Version:
    Component:  Testing framework    |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by julien):

 * needs_better_patch:  1 => 0


Comment:

 The latest (and hopefully last) patch doesn't use settings anymore.
 Instead it uses a single environment variable holding the default address
 'localhost:8081'. To override that default address, one can pass the
 `--liveserver` option to the '`manage.py test`' command.

 By the way, I've figured out why a missing STATIC_URL used to cause the
 test to freeze. It was because the generated exception didn't bubble up to
 the main thread, which in turn could not release the live server's socket.
 It is still worth leaving the safety shutdown mechanism for the case where
 the user has an infinite loop in their views though. This is now all fixed
 and tested in the new patch.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2879#comment:97>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to