From 5c5df8148fcaaed33a49a29cd303d739855ea251 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 11 Feb 2022 07:59:49 +0300 Subject: Add scaffolding to run different types of tests Enable running commands: - `python3 setup.py unit_check`: run the unit tests - `python3 setup.py integration_check`: run integration tests - `python3 setup.py performance_check`: run performance tests --- setup.cfg | 5 +++++ setup.py | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b7593ce --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[aliases] +check = pytest +unit_check = check --addopts=tests/unit +integration_check = check --addopts=tests/integration +performance_check = check --addopts=tests/performance diff --git a/setup.py b/setup.py index 55b4be2..a4e95d1 100644 --- a/setup.py +++ b/setup.py @@ -34,4 +34,9 @@ setup(author='Bonface M. K.', 'tests' ], url='https://github.com/genenetwork/genenetwork3', - version='0.1') + version='0.1', + # ---- TESTING ---- # + setup_requires=['pytest-runner'], + tests_require=["pytest", "hypothesis"] + # ---- END: TESTING ---- # + ) -- cgit 1.4.1