From 9b868c98a1a0e710764a41f5688daaafda90fc47 Mon Sep 17 00:00:00 2001 From: Manu Date: Tue, 20 Nov 2018 18:06:18 +0800 Subject: [PATCH] Update command for running tests. --- README.md | 2 +- setup.cfg | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 889853f8..77a3daf4 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ $ pyinstaller --clean --noconfirm vorta.spec Tests are in the folder `/tests`. Testing happens at the level of UI components. Calls to `borg` are mocked and can be replaced with some example json-output. To run tests: ``` -$ python setup.py test +$ pytest ``` ## Why the Name? diff --git a/setup.cfg b/setup.cfg index fd3f3373..c98ed190 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,17 +43,15 @@ tests_require = pytest pytest-qt pytest-mock + pytest-xdist pytest-faulthandler [options.entry_points] gui_scripts = vorta = vorta.__main__:main -[aliases] -test=pytest - [tool:pytest] -addopts = -vs +addopts = --forked -vs testpaths = tests qt_default_raising = true filterwarnings =