mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-04 15:00:02 -04:00
290ff9930a
- other coverage tips
27 lines
694 B
Python
27 lines
694 B
Python
import testenv; testenv.configure_for_tests()
|
|
from testlib import sa_unittest as unittest
|
|
|
|
|
|
def suite():
|
|
modules_to_test = (
|
|
'profiling.memusage',
|
|
'profiling.compiler',
|
|
'profiling.pool',
|
|
'profiling.zoomark',
|
|
'profiling.zoomark_orm',
|
|
)
|
|
alltests = unittest.TestSuite()
|
|
if testenv.testlib.config.coverage_enabled:
|
|
return alltests
|
|
|
|
for name in modules_to_test:
|
|
mod = __import__(name)
|
|
for token in name.split('.')[1:]:
|
|
mod = getattr(mod, token)
|
|
alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
|
|
return alltests
|
|
|
|
|
|
if __name__ == '__main__':
|
|
testenv.main(suite())
|