$ nosetests -v
+ALTERNATE TEST RUNNER
+---------------------
+
+The script "sqla_nose.py" is a front-end to Nose which manually associates
+the SQLAlchemy testing plugin with Nose at runtime. This script can run the
+tests without any reliance upon setuptools. In 0.7 we'll be removing the
+Nose plugin from setup, so this will be the way going forward to run tests:
+
+ $ python sqla_nose.py -v
+
RUNNING INDIVIDUAL TESTS
-------------------------
Any directory of test modules can be run at once by specifying the directory
This script is a front-end to "nosetests" which doesn't
require that SQLA's testing plugin be installed via setuptools.
-
"""
import sys
import nose
-
if __name__ == '__main__':
- py3k = getattr(sys, 'py3kwarning', False) or sys.version_info >= (3, 0)
- if py3k:
- # this version breaks verbose output,
- # but is the only API that nose3 currently supports
- nose.main(plugins=[NoseSQLAlchemy()])
- else:
- # this is the "correct" API
- nose.main(addplugins=[NoseSQLAlchemy()])
+ nose.main(addplugins=[NoseSQLAlchemy()])