Commit Graph

6 Commits

Author SHA1 Message Date
Mike Bayer 31491a6acc - rework the unittests README which was very out of date
Change-Id: Id9bda43ea493a8d493be5ecb19da16a91a298f9d
2017-08-19 14:06:14 -04:00
Mike Bayer ea05a23218 - Support has been added for pytest to run tests. This runner
is currently being supported in addition to nose, and will likely
be preferred to nose going forward.   The nose plugin system used
by SQLAlchemy has been split out so that it works under pytest as
well.  There are no plans to drop support for nose at the moment
and we hope that the test suite itself can continue to remain as
agnostic of testing platform as possible.  See the file
README.unittests.rst for updated information on running tests
with pytest.

The test plugin system has also been enhanced to support running
tests against mutiple database URLs at once, by specifying the ``--db``
and/or ``--dburi`` flags multiple times.  This does not run the entire test
suite for each database, but instead allows test cases that are specific
to certain backends make use of that backend as the test is run.
When using pytest as the test runner, the system will also run
specific test suites multiple times, once for each database, particularly
those tests within the "dialect suite".   The plan is that the enhanced
system will also be used by Alembic, and allow Alembic to run
migration operation tests against multiple backends in one run, including
third-party backends not included within Alembic itself.
Third party dialects and extensions are also encouraged to standardize
on SQLAlchemy's test suite as a basis; see the file README.dialects.rst
for background on building out from SQLAlchemy's test platform.
2014-03-03 15:55:17 -05:00
Mike Bayer c87f6af48c - add a nose runner that erases out argv, otherwise
you get "import test" as what it tries to run with
setup.py test
2013-03-25 16:59:27 -04:00
Mike Bayer 9e3cd16c21 - encourage requirements to be in the dialect module,
document running SQLA main tests with external dialect
2013-02-07 20:29:47 -05:00
Mike Bayer 5eaeb70104 updates 2012-10-10 01:41:01 -04:00
Mike Bayer 568de1ef49 - new dialect development README 2012-10-10 01:24:58 -04:00