aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2021-12-08 12:06:35 +1100
committerYuchen Pei <hi@ypei.me>2021-12-08 12:06:35 +1100
commit17a7b73d5446ad7e0f1eab4caba3b4b93c447275 (patch)
treed5fbc4ce9dac6b6b9f1db0011178faadb50c323d /README
parente37a21e4c0bc26f0c7ae9e17cd9ca1abd8b56534 (diff)
Adding headless test.
Diffstat (limited to 'README')
-rw-r--r--README20
1 files changed, 20 insertions, 0 deletions
diff --git a/README b/README
index f5cf254..f67f5fc 100644
--- a/README
+++ b/README
@@ -29,6 +29,7 @@ To debug this add-on on IceCat and other Firefox derivatives, browse to the spec
LibreJS should work with other WebExtensions-compliant browsers; but currently, none of them meet the freedom standards of GNU, so no help will be provided for their usage.
+
TEST:
An automated test suite runs automatically in its own tab whenever the extension
@@ -36,6 +37,25 @@ is loaded as a "temporary add-on" from about:debugging.
Otherwise (if included in the xpi, see BUILD above) it can be launched from the
UI by clicking the [Automated self test...] button.
+To launch the test in command line, ensure the extension has been
+built with automated test suite. Then install selenium-webdriver and
+geckodriver, and ensure the latter is in $PATH:
+
+ $ npm install selenium-webdriver
+ $ npm install geckodriver
+ $ export PATH=$PATH:./node_modules/.bin
+
+Now you can invoke the test with
+
+ $ node ./test.js
+
+which will print out a summary of test results.
+
+Optionally you can also test with a chosen seed
+
+ $ node ./test.js 12345
+
+
CONTACT:
Development mailing list: bug-librejs@gnu.org