From 161a600a50abf21233ea52ae2e980861bd40875e Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 2 Apr 2018 20:47:23 -0700 Subject: [PATCH] using pytest for test discovery and improved feedback --- setup.cfg | 7 +++++++ setup.py | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..372a75664 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,7 @@ +[aliases] +test=pytest + +[tool:pytest] +addopts = --verbose +testpaths = tests +python_files = tests/*/*.py \ No newline at end of file diff --git a/setup.py b/setup.py index 020b63cd3..25945a9fd 100644 --- a/setup.py +++ b/setup.py @@ -317,5 +317,7 @@ def run_tests(self): packages = packages, package_data = {}, install_requires = ['enum34;python_version<"3.4"', 'numpy'], + setup_requires=['pytest-runner'], + tests_require=['pytest'], zip_safe = False, test_suite='tests')