Looking for something similar to Oesjkit

51 views
Skip to first unread message

tonthon

unread,
Jan 26, 2013, 11:06:36 AM1/26/13
to pylons-...@googlegroups.com
Hi,

I'm looking for some feedback on javascript testing tools.
I'd like to test basic dom manipulation and integrate it as much as
possible with py.test.
Oesjkit looks to what I need, but it doesn't seem very active.

Any advice ?

Regards
Gaston

Jonathan Vanasco

unread,
Jan 26, 2013, 2:12:08 PM1/26/13
to pylons-discuss

You should be able to do that with selenium, which has python
bindings.

Rafael Reuber

unread,
Feb 6, 2013, 2:21:50 PM2/6/13
to pylons-...@googlegroups.com
Qunit it's a very easy-to-use and powerful javascript unit test framework. 

Andi Balke

unread,
Feb 6, 2013, 3:55:39 PM2/6/13
to pylons-...@googlegroups.com
hi gaston,

we tried ``ghost.py`` for a longer time since it integrates very well in integration tests and it seemed to be slim. unfortunately it was really flaky and we needed to spend *a lot* in fixing time (tests where running on some machines, on some not). i tried nodeunit for two hours, seems nice, but not a browser tool (actually this was the reason i tried it to be fast). but its not in your stack and somehow it was a bit difficult to setup everything dom-interactive.

in the end we use selenium and we are happy with that. it seems like a heavy solution, but its not compared to the effort for other tools. additionally these kind of tests should be used rarely anyway.

what i like about selenium:
- you can develop and debug tests in your favourite browser (setting a breakpoint will not cause any timeouts)
- you'll get it to run everywhere, also on your headless ci-server
- it is predictable and stable
- it integrates also very good into python/pyramid stack
- there are many resources around, even the java explanations are helpful since the api is similar

what i don't like about selenium:
- we still have some situations where the ci-server fails even though the local tests run. after some time you know where to wait actively; but in the end its somehow logic and predictable.

i cannot tell you about ``py.test``, but starting a selenium-test should be possible from anywhere.

hope this helps,

andi
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages