Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Side by Side Diff: grit/tool/unit.py

Issue 1438403002: Remove contents of grit's git-svn-mirror repository. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « grit/tool/transl2tc_unittest.py ('k') | grit/tool/xmb.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « grit/tool/transl2tc_unittest.py ('k') | grit/tool/xmb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698