From: Ian Jackson Date: Fri, 16 Apr 2021 17:39:00 +0000 (+0100) Subject: docs: Fix docs about test dependencies X-Git-Tag: otter-0.5.0~23 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b64b7424e9a4c5f2acfaebb19c4074da22a77394;p=otter.git docs: Fix docs about test dependencies Reduce duplication and clarify. Signed-off-by: Ian Jackson --- diff --git a/docs/build.rst b/docs/build.rst index bce4c6a2..fd2f7f41 100644 --- a/docs/build.rst +++ b/docs/build.rst @@ -54,7 +54,7 @@ Setup **If you just want to edit and preview the shape libraries (ie the piece shapes) you can stop here.** -4. Install the webdriver binary from Mozilla. Visit +4. For the tests, install the webdriver binary from Mozilla. Visit https://github.com/mozilla/geckodriver/releases/tag/v0.28.0 diff --git a/docs/dev.md b/docs/dev.md index c7c94236..3023b81d 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -169,13 +169,9 @@ Navigating the otter source code Automatic in-browser tests (`wdriver`) -------------------------------------- -* `apt install firefox` - -* `https://github.com/mozilla/geckodriver/releases/tag/v0.28.0` - download appropriate tarball, put "geckodriver" on PATH - -`make check` runs all the tests; `make wdt` runs only those tests. You can run -an individual test with a rune like this: +`make check` runs all the tests; `make wdt` runs only the webdriver +(in-browser) tests. You can run an individual test with a rune like +this: ``` OTTER_TEST_LOG=otter_webdriver_tests=trace CARGO_MANIFEST_DIR=~ian/Rustup/Game/server time target/debug/wdriver --test=wdt-simple --geckodriver-args=