From c659ec507f349a2d4f9a15ffa6cea613debd8ef1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Mar 2021 20:13:38 +0100 Subject: [PATCH] Added tests/__main__.py entry point to run all the tests --- README.md | 5 +++++ tests/__main__.py | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 tests/__main__.py diff --git a/README.md b/README.md index 3881f30d..3deaffa2 100644 --- a/README.md +++ b/README.md @@ -438,6 +438,11 @@ platyvdock rm device_id ## Tests To run the tests simply run `pytest` either from the project root folder or the `tests/` folder. +Or run the following command from the project root folder: + +```shell +python -m tests +``` --- diff --git a/tests/__main__.py b/tests/__main__.py new file mode 100644 index 00000000..e8454173 --- /dev/null +++ b/tests/__main__.py @@ -0,0 +1,5 @@ +import pytest + +if __name__ == '__main__': + # Run all the tests + pytest.main()