From 57fb290c5caa8ddafb098f4a3b6349816a9d5698 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 23 Oct 2013 09:09:19 +0200 Subject: [PATCH] Fixup commit 2b14616c6a9577b4 Add a section about running tests in the README.rst and recommend using "python setup.py test". Fix the test_suite parameter in setup.py accordingly. --- README.rst | 21 +++++++++++++++++++++ setup.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 92ca21d..392c361 100644 --- a/README.rst +++ b/README.rst @@ -97,6 +97,27 @@ JenkinsAPI is intended to map the objects in Jenkins (e.g. Builds, Views, Jobs) ... +Testing +------- + +If you have installed the test dependencies on your system already, you can run +the testsuite with the following command: + +.. code-block:: bash + + python setup.py test + +Otherwise using a virtualenv is recommended. Setuptools will automatically fetch +missing test dependencies: + +.. code-block:: bash + + virtualenv + source .venv/bin/active + (venv) python setup.py test + + + Project Contributors -------------------- diff --git a/setup.py b/setup.py index 6b51c2b..fec0cb2 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( zip_safe=True, include_package_data=False, install_requires=['requests>=1.2.3', 'pytz>=2013b'], - test_suite='jenkinsapi_tests', + test_suite='nose.collector', tests_require=['mock', 'nose', 'coverage'], entry_points=GLOBAL_ENTRY_POINTS, url=PROJECT_URL, -- 2.7.4