diff options
author | Saptak S <saptak013@gmail.com> | 2020-04-02 04:19:50 +0530 |
---|---|---|
committer | Saptak S <saptak013@gmail.com> | 2020-04-02 04:19:50 +0530 |
commit | d417754e4542085244fa1d35b9b561ca8d983b5e (patch) | |
tree | 0a54dc8c48d4ffd4972e29cb88d6c852a8994cd1 /BUILD.md | |
parent | 145021b2e52083fd91cfa9ee2562f05375c125cb (diff) | |
download | onionshare-d417754e4542085244fa1d35b9b561ca8d983b5e.tar.gz onionshare-d417754e4542085244fa1d35b9b561ca8d983b5e.zip |
Adds bash script to run GUI tests individually
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |