| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 '''GRIT tool that runs the unit test suite for GRIT.''' | |
| 7 | |
| 8 | |
| 9 import unittest | |
| 10 | |
| 11 import grit.test_suite_all | |
| 12 from grit.tool import interface | |
| 13 | |
| 14 | |
| 15 class UnitTestTool(interface.Tool): | |
| 16 '''By using this tool (e.g. 'grit unit') you run all the unit tests for GRIT. | |
| 17 This happens in the environment that is set up by the basic GRIT runner, i.e. | |
| 18 whether to run disconnected has been specified, etc.''' | |
| 19 | |
| 20 def ShortDescription(self): | |
| 21 return 'Use this tool to run all the unit tests for GRIT.' | |
| 22 | |
| 23 def Run(self, opts, args): | |
| 24 return unittest.TextTestRunner(verbosity=2).run( | |
| 25 grit.test_suite_all.TestSuiteAll()) | |
| 26 | |
| OLD | NEW |