From 6a2eb48c614138dcafa8bfc892832147bd9692e3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 13 Jun 2009 23:31:56 +0000 Subject: [PATCH] added instant test runner --- README.unittests | 11 ++++++++++- setup.py | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.unittests b/README.unittests index f2849b3bd6..05bfa4aa23 100644 --- a/README.unittests +++ b/README.unittests @@ -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 ----- diff --git a/setup.py b/setup.py index b7692e1ee4..12925a1154 100644 --- 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', -- 2.47.3