Search code examples
djangogevent-socketio

Testing gevent-socketio on Django


I have a django site which uses gevent-socketio for a word game and I would like to automate the tests.

Since gevent-socketio implies user interaction and JavaScript actions I'm stuck in how to start writing tests.

Anyone can point me in the right direction?


Solution

  • Here are some referrals:

    • selenium. Basically, it's testing in a real browser that django can integrate with by the help of LiveServerTestCase.
    • mechanize - programmatic web-browsing. It's a very powerful tool, definitely worth looking. Note that it can "talk" to javascript.
    • sikuli - testing tool that works using screenshots. Very powerful too, but may be a bit too exotic in your case.

    Hope that helps.