FreedomBox/pytest.ini
Veiko Aasa 2317239d8d
dev-container: Add subcommand to run tests
- Add new subcommand `run-tests` to the ./container script and the --pytest-args
  argument to pass additional arguments to the pytest command.
- Runs tests as root.
- Add new parameters to the SSH command:
  - -Y Enable X11 forwarding to be able to run a browser GUI on a container.
  - -C Use traffic compression so the X11 GUI is not laggy.
  - -t Force pseudo-terminal allocation to enable colors on terminal.
  - Use the LogLevel=error option to suppress some warning messages.
- Update module markers in the pytest.ini file.
- Increase the default container disk size to 12G.
- Update HACKING.md to run unit and functional tests.

PROVISION_SCRIPT:
- Explicitly install sshpass as requirement for tests, needed on Debian
  stable.
- Ensure that geckodriver.log and .pytest_cache/ exist and are others-writable.

Closes #1901

Tests performed:
- Run unit tests on stable, testing and unstable containers, no failed tests.
- Run functional tests on stable and testing containers, no regressions.
[ fioddor: Some failing tests. All of them unrelated to the changes
           introduced. Impact restricted to development tools; the product
           hasn't been changed.]

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Fioddor Superconcentrado <fioddor@gmail.com>
2021-01-05 17:34:23 +01:00

55 lines
704 B
INI

[pytest]
DJANGO_SETTINGS_MODULE = plinth.tests.data.django_test_settings
markers = functional
apps
avahi
backups
bepasty
bind
calibre
config
coturn
datetime
deluge
dynamicdns
ejabberd
essential
gitweb
help
i2p
ikiwiki
infinoted
jsxc
matrixsynapse
mediawiki
minetest
minidlna
mldonkey
monkeysphere
mumble
openvpn
pagekite
performance
privoxy
quassel
radicale
roundcube
samba
searx
security
shadowsocks
sharing
skip
snapshot
ssh
sso
storage
syncthing
system
tahoe
tor
transmission
ttrss
upgrades
users