diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-11 15:51:08 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-11 15:51:08 -0400 |
commit | 48c9993b65dfee9ab36f84dbcf8c27631fb38950 (patch) | |
tree | 7289f92a978dc7c39cde783f846e7e5b2d1c7ff0 /test/bootstrap/noseplugin.py | |
parent | 3986fd7626ff29f7debfc72f63ba22235e31ed7e (diff) | |
download | sqlalchemy-48c9993b65dfee9ab36f84dbcf8c27631fb38950.tar.gz |
OK! let's turn this around completely. Forget making a single count across
all platforms. let's instead store callcounts for *all* observed platforms in a datafile.
Will try to get enough platforms in the file for jenkins to have meaningful results.
for platforms not in the file, it's just skiptest.
Diffstat (limited to 'test/bootstrap/noseplugin.py')
-rw-r--r-- | test/bootstrap/noseplugin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/bootstrap/noseplugin.py b/test/bootstrap/noseplugin.py index d653fa502..dc14b48b3 100644 --- a/test/bootstrap/noseplugin.py +++ b/test/bootstrap/noseplugin.py @@ -19,6 +19,10 @@ from test.bootstrap.config import ( _set_table_options, base_config, db, db_label, db_url, file_config, post_configure, pre_configure) +testing = None +engines = None +util = None + log = logging.getLogger('nose.plugins.sqlalchemy') class NoseSQLAlchemy(Plugin): @@ -78,7 +82,8 @@ class NoseSQLAlchemy(Plugin): "a db-default/InnoDB combo.") opt("--table-option", action="append", dest="tableopts", default=[], help="Add a dialect-specific table option, key=value") - + opt("--write-profiles", action="store_true", dest="write_profiles", default=False, + help="Write/update profiling data.") global file_config file_config = ConfigParser.ConfigParser() file_config.readfp(StringIO.StringIO(base_config)) @@ -178,6 +183,7 @@ class NoseSQLAlchemy(Plugin): def beforeTest(self, test): testing.resetwarnings() + testing.current_test = test.id() def afterTest(self, test): engines.testing_reaper._after_test_ctx() |