summaryrefslogtreecommitdiff
path: root/BUILD.md
diff options
context:
space:
mode:
authorSaptak S <saptak013@gmail.com>2020-04-02 04:19:50 +0530
committerSaptak S <saptak013@gmail.com>2020-04-02 04:19:50 +0530
commitd417754e4542085244fa1d35b9b561ca8d983b5e (patch)
tree0a54dc8c48d4ffd4972e29cb88d6c852a8994cd1 /BUILD.md
parent145021b2e52083fd91cfa9ee2562f05375c125cb (diff)
downloadonionshare-d417754e4542085244fa1d35b9b561ca8d983b5e.tar.gz
onionshare-d417754e4542085244fa1d35b9b561ca8d983b5e.zip
Adds bash script to run GUI tests individually
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/BUILD.md b/BUILD.md
index b631d410..fd7e9ebe 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -267,19 +267,19 @@ This will prompt you to codesign three binaries and execute one unsigned binary.
OnionShare includes PyTest unit tests. To run tests, you can run `pytest` against the `tests/` directory.
```sh
-poetry run pytest tests/
+poetry run ./tests/run.sh
```
You can run GUI tests like this:
```sh
-poetry run pytest --rungui tests/
+poetry run ./tests/run.sh --rungui
```
If you would like to also run the GUI unit tests in 'tor' mode, start Tor Browser in the background, then run:
```sh
-poetry run pytest --rungui --runtor tests/
+poetry run ./tests/run.sh --rungui --runtor
```
Keep in mind that the Tor tests take a lot longer to run than local mode, but they are also more comprehensive.
@@ -287,7 +287,7 @@ 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 poetry run pytest --rungui -vvv --no-qt-log tests/
+xvfb-run poetry run ./tests/run.sh --rungui
```
# Making releases