aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/README_testing
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-05-03 16:03:22 +0000
committerMaximilian Krambach <[email protected]>2018-05-03 16:03:22 +0000
commitc755287ba845c4cbbf1d50e5aafecb2e687c7ac9 (patch)
tree6b174738ce28aef4bdc29be8afa9e87db9fcaa69 /lang/js/README_testing
parentjs: changed Key class stub (diff)
downloadgpgme-c755287ba845c4cbbf1d50e5aafecb2e687c7ac9.tar.gz
gpgme-c755287ba845c4cbbf1d50e5aafecb2e687c7ac9.zip
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.
Diffstat (limited to 'lang/js/README_testing')
-rw-r--r--lang/js/README_testing14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/js/README_testing b/lang/js/README_testing
new file mode 100644
index 00000000..b61ca1a6
--- /dev/null
+++ b/lang/js/README_testing
@@ -0,0 +1,14 @@
+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). \ No newline at end of file