From b64b7424e9a4c5f2acfaebb19c4074da22a77394 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 16 Apr 2021 18:39:00 +0100 Subject: [PATCH] docs: Fix docs about test dependencies Reduce duplication and clarify. Signed-off-by: Ian Jackson --- docs/build.rst | 2 +- docs/dev.md | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) 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= -- 2.30.2