Hi Fabian,
I was missing your step 3 -- it definitely works better that way :) Now
that you point it out I see it is documented that way too. I just missed
it.
Thanks,
Simon
On Fri, Aug 29, 2008 at 5:09 PM, Fabian Jakobs <[EMAIL PROTECTED]>wrote:
> Hi Simon,
>
> you don't have to call generate.py each time you update your tests if
> you are using "test-source". This will build the "source" version of the
> application under test. You only need to regenerate it if dependencies
> change or you add new classes (just as in normal "source"). The plan
> "test" target however is equivalent to the "build" target. If you want
> to use this one you have to rebuild after each change.
>
> I use most of the time "test-source" and am quite happy with it.
>
> BTW you never have to reload the test runner itself. Just hitting the
> "run" button will automatically reload the application under test.
>
> This is how I use it:
>
> 1. build tests: ./generate.py source
> 2. open testrunner: open test/index.html
> 3. change URL to point to the source tests:
> html/tests.html?testclass=<your_app_name> --->
> html/tests-source.html?testclass=<your_app_name>
> 4. run the tests
>
> 5. change code and go back to step 4
>
>
> Check out the online docu of our unit test
> <http://qooxdoo.org/documentation/0.8/unit_testing>.
>
> Best Fabian
> > Hi List,
> >
> > I have recently started playing with Qx 0.8, and in particularl the
> > unit test runner. It's very nice -- but I have one gripe which may
> > be because i am not using it properly.
> >
> > It seems that every time I touch either the application-under-test
> > source code, or the unit-test source code and want to run my tests
> > again, I have to:
> >
> > 1) run generate.py test or generate.py test-source again,
> > 2) reload the test runner in the browser,
> > 3) then click the go button.
> >
> > This is a bit of a slow process if I am doing it constantly during a
> > coding session, especially when the generate step starts taking 10, 20
> > or more seconds. I am not certain that I should *need* to run the
> > generate step again every time when I am running from a generate
> > source version of the application-under-test, but the test-runner
> > doesn't pick up my changes without it.
> >
> > Am I using the test framework correctly? Or is there a nicer way?
> >
> > Thanks,
> >
> > Simon
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > qooxdoo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
> --
> Fabian Jakobs
> JavaScript Framework Developer
>
> 1&1 Internet AG
> Brauerstraße 48
> 76135 Karlsruhe
>
> Amtsgericht Montabaur HRB 6484
>
> Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss,
> Achim Weiss
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel