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 781602 e0bde521843265d2676a2d0a54b4b2bf40c012f4
parent 781601 8eaf72f14afcdcf914727d48626be7be85f91f89
child 781603 a44d1b316e94e2855c301a4f0a97ac24767347c8
push id106363
push userbmo:ato@sny.no
push dateFri, 13 Apr 2018 09:43:44 +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.