Run the tests¶
Running the tests is independent from your chosen installation kind but the prerequisites differ.
If you have used the Guided package installation method you have to install the test scripts first:
$ cd current $ ../bin/buildout install node pytest
Run the unit tests¶
Run the unit tests using:
$ bin/py.test -k "not webdriver"
These tests include some tests which require an actual browser to run.
Prerequisites for the browser tests¶
These prerequisites are only needed to run some tests in an actual browser.
Run all tests¶
Run all tests including the browser tests using:
Caution: By default the browser does not show up, it runs in headless mode. To additionally show the actual browser during the tests, call them using:
$ NOT_HEADLESS=1 bin/py.test
To run the tests in Firefox, call them using:
$ SELENIUM_FIREFOX=1 bin/py.test
Firefox also supports the non-headless mode:
$ SELENIUM_FIREFOX=1 NOT_HEADLESS=1 bin/py.test