Bug 1473054 - Add run and testing instructions for geckodriver. r=me
authorAndreas Tolfsen <ato@sny.no>
Tue, 03 Jul 2018 17:40:05 +0100
changeset 425034 fb53dd639f8baecfcb70864a144ccc9600db3ea0
parent 425033 4a8b69ac049e7178d5dfbd07131ed2fb926957ea
child 425035 40423bb8aa180813c4eb1cc58dcee9f0ad440841
push id34232
push userrgurzau@mozilla.com
push dateWed, 04 Jul 2018 16:30:38 +0000
treeherdermozilla-central@6c0fa9a675c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1473054
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1473054 - Add run and testing instructions for geckodriver. r=me MozReview-Commit-ID: 8qxqqKXCV3E
testing/geckodriver/doc/Building.md
--- a/testing/geckodriver/doc/Building.md
+++ b/testing/geckodriver/doc/Building.md
@@ -27,16 +27,29 @@ If you use artifact builds you may also 

 	   Compiling geckodriver v0.21.0 (file:///home/ato/src/gecko/testing/geckodriver)

 	    Finished dev [optimized + debuginfo] target(s) in 7.83s
 
 Because all Rust code in central shares the same cargo workspace,
 the binary will be put in the `$(topsrcdir)/target` directory.
 
+You can run your freshly built geckodriver this way:
+
+	% ./mach geckodriver -- --other --flags
+
+And run its unit tests like this:
+
+	% ./mach test testing/geckodriver
+
+Or by invoking cargo in its subdirectory:
+
+	% cd testing/geckodriver
+	% cargo test
+
 [Rust]: https://www.rust-lang.org/
 [webdriver crate]: https://crates.io/crates/webdriver
 [commands]: https://docs.rs/webdriver/newest/webdriver/command/
 [responses]: https://docs.rs/webdriver/newest/webdriver/response/
 [errors]: https://docs.rs/webdriver/newest/webdriver/error/enum.ErrorStatus.html
 [Marionette protocol]: /testing/marionette/doc/marionette/Protocol.html
 [WebDriver]: https://w3c.github.io/webdriver/
 [Marionette]: /testing/marionette/doc/marionette