========================= Appendix: Testing Ilastik ========================= ilastik comes with a set of unit/regression tests. You must have `nosetests `_ installed to run the tests. Non-gui tests ============= To run all the non-gui tests in one go, use nosetests: .. code-block:: bash $ cd ilastik/tests $ nosetests --nologcapture .. note:: ilastik and lazyflow make extensive use of the python logger. Unfortunately, nosetests sets the default logging level to DEBUG, which causes a lot of unecessary output for failed tests. Use the ``--nologcapture`` option to disable logger output. Sometimes it's convenient to run the test scripts one at a time. A convenience script for that is included in the tests directory: .. code-block:: bash $ cd ilastik/tests $ ./testeach.sh . .. note:: The ``testeach.sh`` script MUST be run from within the tests directory. It takes an optional argument for the subdirectory to run. GUI tests ========= The ilastik GUI tests cannot be run using nosetests. You must run them directly as python scripts (they use nosetests internally, but from a different thread). .. code-block:: bash $ cd ilastik/tests $ python test_applets/pixelClassification/testPixelClassificationGui.py $ python test_applets/pixelClassification/testPixelClassificationMultiImageGui.py Because of this limitation, the GUI tests are not executed using the travis-CI tool.