mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: functional: Document running tests in parallel
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
bff294ed39
commit
575f07b8e5
12
HACKING.md
12
HACKING.md
@ -213,10 +213,11 @@ Buster (or later).
|
|||||||
```bash
|
```bash
|
||||||
host$ pip3 install splinter
|
host$ pip3 install splinter
|
||||||
host$ pip3 install pytest-splinter
|
host$ pip3 install pytest-splinter
|
||||||
|
host$ pip3 install pytest-xdist # optional, to run tests in parallel
|
||||||
|
host$ sudo apt install firefox
|
||||||
host$ sudo apt install python3-pytest-bdd
|
host$ sudo apt install python3-pytest-bdd
|
||||||
host$ sudo apt install xvfb python3-pytest-xvfb # optional, to avoid opening browser windows
|
host$ sudo apt install xvfb python3-pytest-xvfb # optional, to avoid opening browser windows
|
||||||
host$ sudo apt install firefox
|
host$ sudo apt install smbclient # optional, to test samba
|
||||||
host$ sudo apt install smbclient # optional, to test samba
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- Install the latest version of geckodriver. It is usually a single binary which
|
- Install the latest version of geckodriver. It is usually a single binary which
|
||||||
@ -275,6 +276,13 @@ If xvfb is installed and you still want to see browser windows, use the
|
|||||||
vm$ py.test-3 --no-xvfb -m mediawiki --include-functional
|
vm$ py.test-3 --no-xvfb -m mediawiki --include-functional
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Tests can also be run in parallel, provided you have the pytest-xdist plugin
|
||||||
|
installed.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ py.test-3 -n 4 --dist=loadfile --include-functional -m essential
|
||||||
|
```
|
||||||
|
|
||||||
## Building the Documentation Separately
|
## Building the Documentation Separately
|
||||||
|
|
||||||
FreedomBox Service (Plinth) man page is built from DocBook source in the `doc/`
|
FreedomBox Service (Plinth) man page is built from DocBook source in the `doc/`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user