testing.rst 791 B

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