summaryrefslogtreecommitdiff
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2019-10-22 10:00:53 -0400
committerGitHub <noreply@github.com>2019-10-22 10:00:53 -0400
commita768f8d22a2c41af8163546b291b1f60d424dcc1 (patch)
tree75eeb07a60042f8fe4ff608c37d1bbe3cd6c460a /setuptools/command/test.py
parent1362c8c37355f74b5aa9a8afb749aa9464bb58fb (diff)
parentcd84510713ada48bf33d4efa749c2952e3fc1a49 (diff)
downloadpython-setuptools-git-a768f8d22a2c41af8163546b291b1f60d424dcc1.tar.gz
Merge pull request #1878 from jdufresne/deprecate-test-suite
Deprecate the test command
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 973e4eb2..c148b38d 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -74,7 +74,7 @@ class NonDataProperty:
class test(Command):
"""Command to run unit tests after in-place build"""
- description = "run unit tests after in-place build"
+ description = "run unit tests after in-place build (deprecated)"
user_options = [
('test-module=', 'm', "Run 'test_suite' in specified module"),
@@ -214,6 +214,14 @@ class test(Command):
return itertools.chain(ir_d, tr_d, er_d)
def run(self):
+ self.announce(
+ "WARNING: Testing via this command is deprecated and will be "
+ "removed in a future version. Users looking for a generic test "
+ "entry point independent of test runner are encouraged to use "
+ "tox.",
+ log.WARN,
+ )
+
installed_dists = self.install_dists(self.distribution)
cmd = ' '.join(self._argv)