OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 import os |
| 8 import sys |
| 9 import unittest |
| 10 |
| 11 |
| 12 def main(): |
| 13 try: |
| 14 import appengine_testing |
| 15 except ImportError: |
| 16 print ('Could not import appengine_testing. WebKit/Tools must be on ' |
| 17 'PYTHONPATH.') |
| 18 sys.exit(1) |
| 19 appengine_testing.set_up() |
| 20 |
| 21 tests_path = os.path.dirname(sys.modules[__name__].__file__) |
| 22 suite = unittest.loader.TestLoader().discover(tests_path, |
| 23 pattern='*_test.py') |
| 24 unittest.TextTestRunner(verbosity=2).run(suite) |
| 25 |
| 26 |
| 27 if __name__ == '__main__': |
| 28 main() |
OLD | NEW |