]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added instant test runner
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 13 Jun 2009 23:31:56 +0000 (23:31 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 13 Jun 2009 23:31:56 +0000 (23:31 +0000)
README.unittests
setup.py

index f2849b3bd6af728f31dd8b3bd602d1b4942e8f42..05bfa4aa23af596e9b2210cdb86630eecaec943b 100644 (file)
@@ -10,10 +10,19 @@ downloads for nose are available at:
 
 http://somethingaboutorange.com/mrl/projects/nose/0.11.1/index.html
 
-
 SQLAlchemy implements a nose plugin that must be present when tests are run.
 This plugin is available when SQLAlchemy is installed via setuptools.
 
+INSTANT TEST RUNNER
+-------------------
+
+A plain vanilla run of all tests using sqlite can be run via setup.py:
+
+    $ python setup.py test
+    
+Setuptools will take care of the rest !   To run nose directly and have
+its full set of options available, read on...
+
 SETUP
 -----
 
index b7692e1ee44fd300af0614783b6700b8a690bb50..12925a11544b2c2a683af44f812b8cacee0e4877 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,8 @@ setup(name = "SQLAlchemy",
       packages = find_packages('lib'),
       package_dir = {'':'lib'},
       license = "MIT License",
-
+      tests_require = ['nose >= 0.10'],
+      test_suite = "nose.collector",
       entry_points = {
           'nose.plugins.0.10': [
               'sqlalchemy = sqlalchemy.test.noseplugin:NoseSQLAlchemy',