Fixup commit 2b14616c6a9577b4
authorSascha Peilicke <saschpe@gmx.de>
Wed, 23 Oct 2013 07:09:19 +0000 (09:09 +0200)
committerSascha Peilicke <saschpe@gmx.de>
Wed, 23 Oct 2013 07:13:33 +0000 (09:13 +0200)
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
setup.py

index 92ca21d594549f487aa27e382494e447ef367ba3..392c3617b2ed00ff7569a11d7b558758a24af094 100644 (file)
@@ -97,6 +97,27 @@ JenkinsAPI is intended to map the objects in Jenkins (e.g. Builds, Views, Jobs)
        <jenkinsapi.build.Build test_jenkinsapi #77>
        ...
 
+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
 --------------------
 
index 6b51c2b63a376bbc3ea1cce98562f92f49662a64..fec0cb239357c2ace97a58264619de909a7af83b 100644 (file)
--- 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,