Bug 1453381 - Add docs for running Marionette xpcshell tests. r?whimboo draft
authorAndreas Tolfsen <ato@sny.no>
Wed, 11 Apr 2018 20:53:50 +0100
changeset 781238 134e7c38f1e8cc56eac0caf3633fc62693bfb3fb
parent 781237 f670b58ed63729495057e82ae711a26b8d07db37
child 781239 188d8896a1ace67f8305cf2d97f31c15edf05981
push id106250
push userbmo:ato@sny.no
push dateThu, 12 Apr 2018 19:02:29 +0000
reviewerswhimboo
bugs1453381
milestone61.0a1
Bug 1453381 - Add docs for running Marionette xpcshell tests. r?whimboo This duplicates documentation under testing/marionette/doc, but can be useful when inspecting the directory. MozReview-Commit-ID: 7vuUze1SFib
testing/marionette/test/unit/README.md
new file mode 100644
--- /dev/null
+++ b/testing/marionette/test/unit/README.md
@@ -0,0 +1,14 @@
+To run the tests in this directory, from the top source directory,
+either invoke the test despatcher in mach:
+
+	% ./mach test testing/marionette/test/unit
+
+Or call out the harness specifically:
+
+	% ./mach xpcshell-test testing/marionette/test/unit
+
+The latter gives you the `--sequential` option which can be useful
+when debugging to prevent tests from running in parallel.
+
+When adding new tests you must make sure they are listed in
+xpcshell.ini, otherwise they will not run on try.