diff options
author | Frederick Muriuki Muriithi | 2022-02-11 07:59:49 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-02-11 08:08:59 +0300 |
commit | 5c5df8148fcaaed33a49a29cd303d739855ea251 (patch) | |
tree | 24d95e64d0fa3b0f60cd049248135e5ade785f0f | |
parent | 651c8ad9ae20ab52e7ab694c0caa9d92774b49b5 (diff) | |
download | genenetwork3-5c5df8148fcaaed33a49a29cd303d739855ea251.tar.gz |
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
-rw-r--r-- | setup.cfg | 5 | ||||
-rw-r--r-- | setup.py | 7 |
2 files changed, 11 insertions, 1 deletions
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 @@ -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 ---- # + ) |