A Python wrapper for envjasmine
You can install pyenvjasmine using pip:
pip install pyenvjasmine
Or you can grab the latest sources and install it from there:
python setup.py install
Also, you can use it directly from the sources directory, in development mode (useful if you want to contribute to the project):
pip install -e .
More about the development mode here:
Starting with version 0.3.0, pyenvjasmine has support to run tests with different browsers/engines. The headless browser rhino is included with pyenvjasmine, but in order to use the other engines, you have to install the needed browser(s).
Right now, only phantomjs is supported, so ensure you have it installed if you want to use that browser/engine to run tests on. Required if you want to run tests on jasmine 3.x (also required to run pyenvjasmine’s own tests).
The simplest solution is to set capture_output to False, so you see the output from the js tests on the console. Something like this:
In this example, the phantomjs browse/engine is used, replace that with rhino to run tests on rhino + jasmine 1.x.
phantomjs is the preferred browser/engine, so it is what pyenvjasmine will use as a default if you don’t set testing_environment when creating a new Runner instance.