Hi team,

I am currently looking for some advice about testing for our Qooxdoo apps.
We would like to switch to a Test Driven Development methodology, thus we
are investigating our options.

The main problem I am encountering is that I feel writing unit tests for our
application is hard and/or useless. Eg, testing classes one at a time has
not much interest; we use a MVC architecture, and there are very few things
that can be tested individually (eg, for a single class).

Most of our tests should be so called "integration tests", where we create a
lot of different objects and test the interactions between them. For
instance I register a listener, and I test that if the action is taken, the
correct callback takes place. So I've started trying to write integration
tests within the base TestRunner Qooxdoo framework. But I went into troubles
immediately. In particular, our code quite often calls
qx.core.Init.getApplication(); but when I run this in the TestRunner, the
object that I get is the TestRunner instance, and thus all my code fails
instantly...

It seems to me TestRunner may be useful for testing Qx as a framework, since
unit tests are much more easier for a framework. But I fail to see how it
can help me write integration tests, although I really wish to...

I have used Selenium in the past for functional testing (eg, tests in real
production situation) and this worked very well. I could (and will actually)
use Selenium with Qooxdoo for such functional testing, but in order to
switch to a TDD, I also need to write integration / unit tests and Selenium
is a bit too high level for that.

Anyone has advice for our team? Can the qx.core.Init.getApplication()
problem get fixed somehow (via mocking or...)?

Thanks

Jean-Noel
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to