Hi Benjamin,

the testrunner.js mentioned in the blog post[1] is not the generated 
Testrunner script, it's a separate file contained in the zip archive 
linked in the text:

http://news.qooxdoo.org/wp-content/uploads/2011/11/headless.zip

This is the script you run with phantomjs. It takes two command-line 
arguments: The namespace of the tests to be executed (e.g. <myapp>.test) 
and the URI of the Testrunner's index file, e.g. 
http://localhost/myapp/test/index.html

(Make sure you've generated the Testrunner with the macro setting as 
described in the blog post, this is necessary so the phantomjs script 
can interact with it)

Hope this clears things up.


Regards,
Daniel

[1] http://news.qooxdoo.org/running-unit-tests-from-the-command-line



On 11/08/2011 04:00 PM, Benjamin Dreux wrote:
> HI
> In an effort to make my js code more normal.
> I'm trying to using the command line ( with in maven, but it just
> execute the phantomjs executable )to run some qooxdoo tests.
>
> But i don't fully understand the way we need to use it.
>
> I've add the phantomjs to my /bin.
> Then I run
>
> phantomjs<app-name>/test/script/testrunner.js<app-name>.test
>
> Then i read the post again, it says that there is a script that will
> drive the testrunner.
>
> So i builded my test app once again.
> And copied the testrunner.js in my<app-name>/test/script/testrunner.js
> Once again i run
> phantomjs<app-name>/test/script/testrunner.js<app-name>.test
>
> Here is my output
>
> 000268 qx.core.Init: Load runtime: 267ms
> 000711 qx.testPageUri is not a valid key. Please see the API-doc of
> qx.core.Environment for a list of predefined keys.
> 000712 qx.core.Environment: qx.log.Logger.trace()
> qx.core.Environment.get()
> testrunner.runner.TestRunner.constructor()
> testrunner.runner.TestRunner.constructor()
> testrunner.GuiApplication.prototype.main()
> qx.core.Init.ready()
> qx.event.dispatch.Direct.prototype.dispatchEvent()
> X()
> qx.event.Manager.prototype.dispatchEvent()
> qx.event.Registration.fireEvent()
> qx.event.handler.Application.prototype.__cA()
> qx.event.handler.Application.onScriptLoaded()
> anonymous()
> anonymous()
> anonymous()
> 000715 qx.core.Init: Main runtime: 445ms
> 000735 qx.core.Init: Finalize runtime: 20ms
>
> The execution never end.
>
>
> I had the idea that maybe the test namespace sould be the one of the
> qooxdoo (the one in the exemple)
> Here is my output
> Unable to load page
>
>
> Is there something that i'm missing ??
>
> Regards

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to