xmpp.chapril.org-conversejs/docs/source/testing.rst
Matthias Heinzel a9e6d1131a
Fix links (#1966)
* README: fix broken links

* fix references to tests.html

The file was moved in e7aed050b4
2020-04-13 11:27:23 +02:00

25 lines
804 B
ReStructuredText

Automated tests
===============
Converse uses the `Jasmine <https://jasmine.github.io/>`_ testing framework for
writing tests.
Tests are run in a browser, either manually or automatically via Chrome
headless.
Adding tests for your bugfix or feature
----------------------------------------
Take a look at `tests/index.html <https://github.com/jcbrand/converse.js/blob/master/tests/index.html>`_
and the `spec files <https://github.com/jcbrand/converse.js/blob/master/spec/>`_
to see how tests are implemented.
Running tests
-------------
Check that all tests complete sucessfully.
Run ``make check`` in your terminal.
To run the tests manually, run ``make serve`` and then open `http://localhost:8000/tests <https://github.com/jcbrand/converse.js/blob/master/tests/index.html>`_ in your browser.