mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-10 10:25:03 -04:00
Updated build instructions for running tests
This commit is contained in:
parent
c5e7b6c5bc
commit
4da1cf532e
1 changed files with 11 additions and 9 deletions
20
BUILD.md
20
BUILD.md
|
@ -264,6 +264,8 @@ This will prompt you to codesign three binaries and execute one unsigned binary.
|
||||||
|
|
||||||
# Running tests
|
# Running tests
|
||||||
|
|
||||||
|
## Tests in macOS and Linux
|
||||||
|
|
||||||
OnionShare includes PyTest unit tests. To run tests, you can run `pytest` against the `tests/` directory.
|
OnionShare includes PyTest unit tests. To run tests, you can run `pytest` against the `tests/` directory.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -276,20 +278,20 @@ You can run GUI tests like this:
|
||||||
poetry run ./tests/run.sh --rungui
|
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:
|
If you're using Linux, 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
|
|
||||||
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.
|
|
||||||
|
|
||||||
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
|
```sh
|
||||||
xvfb-run poetry run ./tests/run.sh --rungui
|
xvfb-run poetry run ./tests/run.sh --rungui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Tests in Windows
|
||||||
|
|
||||||
|
You can run this Windows batch script to run all of the CLI and GUI tests.
|
||||||
|
|
||||||
|
```
|
||||||
|
poetry run tests\run.bat
|
||||||
|
```
|
||||||
|
|
||||||
# Making releases
|
# Making releases
|
||||||
|
|
||||||
This section documents the release process. Unless you're a core OnionShare developer making a release, you'll probably never need to follow it.
|
This section documents the release process. Unless you're a core OnionShare developer making a release, you'll probably never need to follow it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue