Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top