summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-01-18 14:39:25 -0800
committerMicah Lee <micah@micahflee.com>2019-01-18 14:39:25 -0800
commit798f54f05aed1bf8bf3713357c3aa8b7a52b1c34 (patch)
treebf232f9753427159d12ebd5af05274081ed0c3f4
parent9f3fa51fc56a381755ee22db30805b10eac68b7d (diff)
downloadonionshare-798f54f05aed1bf8bf3713357c3aa8b7a52b1c34.tar.gz
onionshare-798f54f05aed1bf8bf3713357c3aa8b7a52b1c34.zip
Update tests section in BUILD.md to give instructions on using --rungui to run GUI tests
-rw-r--r--BUILD.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/BUILD.md b/BUILD.md
index 1e135251..6073d1a9 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -155,10 +155,16 @@ Then you can run `pytest` against the `tests/` directory.
pytest tests/
```
+You can run GUI tests like this:
+
+```sh
+pytest --rungui tests/
+```
+
If you would like to also run the GUI unit tests in 'tor' mode, start Tor Browser in the background, then run:
```sh
-pytest --runtor tests/
+pytest --rungui --runtor tests/
```
Keep in mind that the Tor tests take a lot longer to run than local mode, but they are also more comprehensive.
@@ -166,5 +172,5 @@ Keep in mind that the Tor tests take a lot longer to run than local mode, but th
You can also choose to wrap the tests in `xvfb-run` so that a ton of OnionShare windows don't pop up on your desktop (you may need to install the `xorg-x11-server-Xvfb` package), like this:
```sh
-xvfb-run pytest tests/
+xvfb-run pytest --rungui tests/
```