gpgme/lang/js/README_testing
Maximilian Krambach c755287ba8 js: Added browser testing for unit tests
--

* Added unittests to be run inside a Browser. To be able to access
  the non-exposed functions and classes, a testing bundle will be
  created, containing the tests (unittests.js) and the items to be
  tested.
* src/Helpelpers, src/Key, src/Keyring: fixed some errors found
  during testing.
2018-05-03 18:03:22 +02:00

14 lines
536 B
Plaintext

Test extension:
The test extension contains tests with mocha and chai. It will be packed as an
extra extension (see build_extension.sh).
Tests from BrowserTestExtension/tests will be run against the gpgmejs.bundle.js
itself. They aim to test the outward facing functionality and API.
Unittests as defined in ./unittests.js will be bundled in
gpgmejs_unittests.bundle.js, and test the separate components of gpgmejs,
which mostly are not exported.
The BrowserExtension can be installed the same way as the DemoExtension
(see README).