diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000000..b7e478982ccf --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[aliases] +test=pytest diff --git a/setup.py b/setup.py index ba1040f62eb8..971f9f07f16b 100644 --- a/setup.py +++ b/setup.py @@ -16,12 +16,6 @@ import glob from setuptools import setup -import unittest - -def get_test_suite(): - test_loader = unittest.TestLoader() - test_suite = test_loader.discover('sonic-utilities-tests', pattern='*.py') - return test_suite setup( name='sonic-utilities', @@ -125,7 +119,11 @@ def get_test_suite(): 'click', 'natsort' ], + setup_requires= [ + 'pytest-runner' + ], tests_require = [ + 'pytest', 'mock>=2.0.0', 'mockredispy>=2.9.3' ],