Given that about 85% of statistics are made up on the spot, about 95% of
javascript that has been written, was written for client-side environments
like browsers, which means they usually contain references to
non-ecma-standard objects like the global window or document object etc.
QUnit falls into this category too, so it can't be used with something like
rhino or spider monkey alone.

Envjs is a project originally developed by John Resig (
http://ejohn.org/blog/bringing-the-browser-to-the-server/) which provides a
client javascript environment so we can use that 95% of existing javascript
outside of the browser.  I use qunit to run my tests in the client, server,
and shell with Envjs and like Steven mentioned, there is both a Rhino and
SpiderMonkey platform for Envjs.

We are currently in 1.1 release candidacy but still pretty stable and 1.0
has less features but is very stable too.  Come join our list and we'll help
you get started using qunit outside the browser.

(http://groups.google.com/group/envjs)

Thatcher

On Tue, Jan 12, 2010 at 2:48 PM, Steven Parkes <smpar...@smparkes.net>wrote:

>
> On Jan 11, 2010, at Jan 11,7:15 PM , Nikita Vasilyev wrote:
>
> > Is there any example of using QUnit with Rhino (or another JS engine)?
> > (at least without DOM)
> >
> > I would like to run QUnit tests from Rake task.
>
> I run qunit tests with the SpiderMonkey/Ruby/Johnson port of env.js. All
> the pieces are (supposed to be) put together in the smparkes-jazrb gem.
>
> An example use is in my fork of Jack Moffitt's strophejs XMPP client
> library: http://github.com/smparkes/strophejs
>
> With all the pieces installed you can use the jazrb command to run
> strophe.js's qunit tests:
>
> smpar...@collegeterrace ~/strophejs $ jazrb -q tests/pubsub.html
> tests/strophe.html
> ................................
>
> Finished in 1.787826 seconds
>
> 32 examples, 0 failures, 0 pending
>
> The default output is rspec-like, but you can ask for it in pseudo-junit
> xml with the -x flag, too.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "jQuery Development" group.
> To post to this group, send email to jquery-...@googlegroups.com.
> To unsubscribe from this group, send email to
> jquery-dev+unsubscr...@googlegroups.com<jquery-dev%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-dev?hl=en.
>
>
>
>


-- 
Christopher Thatcher
--
You received this message because you are subscribed to the Google Groups "jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.

Reply via email to