-NoseJS is a `Nose`_ plugin to
.. _Nose: http://www.somethingaboutorange.com/mrl/projects/nose/
.. _Rhino: http://www.mozilla.org/rhino/
First, you need to download `Rhino`_. More on that below.
You can get NoseJS with `easy_install <http://peak.telecommunity.com/DevCenter/EasyInstall>`_ ::
$ python setup.py develop
Here is the most basic way to invoke NoseJS (assumes you've downloaded `Rhino`_ into ~/src) ::
This command would look for any files along Nose's path ending in .js that match Nose's current test pattern, collect them all, then execute them using Rhino in a single Java subprocess at the end of all other tests. By default, files looking like ``test*.js`` will be collected and run.
Wait ... Python *and* Java?
+Alternatively, John J. Lee created a Python binding to the fast `Spider Monkey engine <http://www.mozilla.org/js/spidermonkey/>`_, Atul Varma revived it once in a fork on `Google Code <http://code.google.com/p/python-spidermonkey/>`_, and now Paul J. Davis is working on it (in `git <http://github.com/davisp/python-spidermonkey/tree/master>`_ and it is released on `PyPI <http://pypi.python.org/pypi/python-spidermonkey>`_).
-Once Python Spidermonkey becomes a bit more stable it would be nicer than Rhino because tests could be executed inline alongside other Python tests without the overhead of starting up a Java process.
+- Better spidermonkey support
+- Distribute a Rhino js.jar with NoseJS
+- Upgrade env.js using git repo