#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:  1
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by julien):

 Thank you all for the precious early work on this. I've used the initial
 patches here and tried to come up with a clean implementation and a simple
 API (see the attached patch). I've also written a few Selenium tests for
 the admin; many more admin tests could be written but I think for now
 that's enough to show that it works.

 Several things could probably be improved. Perhaps the Selenium and live
 servers should be launched in `setUpClass()` instead of `setUp()`. There
 also probably are some edge cases that aren't covered yet, as so far I've
 only tested with sqlite on Chrome and Firefox.

 Finally, one particular comment on threading. As currently implemented,
 the live server continuously waits for requests until the `please_stop`
 event is set. Since the socket is blocked until the next request is
 received, I've made it to send on last dummy request to finally unblock
 and close the server. Although I could live with that, it'd be nice to do
 it a bit differently. Some good clues can be found there:
 http://www.velocityreviews.com/forums/t675145-stopping-socketserver-on-
 python-2-5-a.html

 I've written some doc which should hopefully be enough to get you started.
 Any feedback would be greatly appreciated. Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2879#comment:57>
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