runtests.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 from __future__ import absolute_import, division, with_statement
00004 import unittest
00005 
00006 TEST_MODULES = [
00007     'tornado.httputil.doctests',
00008     'tornado.iostream.doctests',
00009     'tornado.util.doctests',
00010     'tornado.test.auth_test',
00011     'tornado.test.curl_httpclient_test',
00012     'tornado.test.escape_test',
00013     'tornado.test.gen_test',
00014     'tornado.test.httpclient_test',
00015     'tornado.test.httpserver_test',
00016     'tornado.test.httputil_test',
00017     'tornado.test.import_test',
00018     'tornado.test.ioloop_test',
00019     'tornado.test.iostream_test',
00020     'tornado.test.options_test',
00021     'tornado.test.process_test',
00022     'tornado.test.simple_httpclient_test',
00023     'tornado.test.stack_context_test',
00024     'tornado.test.template_test',
00025     'tornado.test.testing_test',
00026     'tornado.test.twisted_test',
00027     'tornado.test.util_test',
00028     'tornado.test.web_test',
00029     'tornado.test.wsgi_test',
00030 ]
00031 
00032 
00033 def all():
00034     return unittest.defaultTestLoader.loadTestsFromNames(TEST_MODULES)
00035 
00036 if __name__ == '__main__':
00037     # The -W command-line option does not work in a virtualenv with
00038     # python 3 (as of virtualenv 1.7), so configure warnings
00039     # programmatically instead.
00040     import warnings
00041     # Be strict about most warnings.  This also turns on warnings that are
00042     # ignored by default, including DeprecationWarnings and
00043     # python 3.2's ResourceWarnings.
00044     warnings.filterwarnings("error")
00045     # Tornado generally shouldn't use anything deprecated, but some of
00046     # our dependencies do (last match wins).
00047     warnings.filterwarnings("ignore", category=DeprecationWarning)
00048     warnings.filterwarnings("error", category=DeprecationWarning,
00049                             module=r"tornado\..*")
00050     # tornado.platform.twisted uses a deprecated function from
00051     # zope.interface in order to maintain compatibility with
00052     # python 2.5
00053     warnings.filterwarnings("ignore", category=DeprecationWarning,
00054                             module=r"tornado\.platform\.twisted")
00055     warnings.filterwarnings("ignore", category=DeprecationWarning,
00056                             module=r"tornado\.test\.twisted_test")
00057 
00058     import tornado.testing
00059     tornado.testing.main()


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:55