Running tests
=============
-Each bigger lump of Python code or Jinja2 template markup has tests. There are
-no visual tests for the CSS style at the moment. Run tests:
+Each bigger lump of Python code, Jinja2 template markup or JS code has tests.
+There are no visual tests for the CSS style at the moment. Run tests:
.. code:: sh
cd doxygen
python -m unittest
+ node test/test-search.js
-Code coverage needs `coverage.py <https://coverage.readthedocs.io/>`_. There is
-no possibility of getting code coverage for Jinja2 templates, though.
+Code coverage needs `coverage.py <https://coverage.readthedocs.io/>`_ for
+Python and `istanbul <https://istanbul.js.org/>`_ for JS. There is no
+possibility of getting code coverage for Jinja2 templates, though.
.. code:: sh
coverage run -m unittest ; coverage html
# open htmlcov/index.html in your browser
+ cd doxygen
+ node ./path/to/istanbul/lib/cli.js cover test/test-search.js
+ # open coverage/lcov-report/index.html in your browser
+
cd pelican-plugins
coverage run -m unittest ; coverage html
# open htmlcov/index.html in your browser
The project is built on Travis CI on Linux with Python 3.4, 3.5 and 3.6;
Doxygen theme is tested only on 3.6 and math rendering is disabled as it's
impossible to get it working on the old Ubuntu 14.04 LTS. Build status is over
-at https://travis-ci.org/mosra/m.css.
+at http://mcss.mosra.cz/build-status/.
Contact
=======