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

Side by Side Diff: telemetry/examples/browser_tests/failed_tests.py

Issue 2700563004: [Telemetry] Migrate browser_test_runner to use typ as the test runner (Closed)
Patch Set: Created 3 years, 10 months 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 | « telemetry/bin/run_browser_tests ('k') | telemetry/examples/browser_tests/process_tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import sys 5 import sys
6 6
7 from telemetry.testing import serially_executed_browser_test_case 7 from telemetry.testing import serially_executed_browser_test_case
8 8
9 9
10 class SetUpClassFailedTest( 10 class SetUpClassFailedTest(
11 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): 11 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase):
12 12
13 @classmethod 13 @classmethod
14 def setUpClass(cls): 14 def setUpClass(cls):
15 raise Exception 15 raise Exception
16 16
17 @classmethod 17 @classmethod
18 def GenerateTestCases_DummyTest(cls, options): 18 def GenerateTestCases_DummyTest(cls, options):
19 del options # Unused. 19 del options # Unused.
20 for i in xrange(0, 100): 20 for i in xrange(0, 3):
21 yield 'dummy_test_%i' % i, () 21 yield 'dummy_test_%i' % i, ()
22 22
23 def DummyTest(self): 23 def DummyTest(self):
24 pass 24 pass
25 25
26 26
27 class TearDownClassFailedTest( 27 class TearDownClassFailedTest(
28 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): 28 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase):
29 29
30 @classmethod 30 @classmethod
31 def tearDownClass(cls): 31 def tearDownClass(cls):
32 raise Exception 32 raise Exception
33 33
34 @classmethod 34 @classmethod
35 def GenerateTestCases_DummyTest(cls, options): 35 def GenerateTestCases_DummyTest(cls, options):
36 del options # Unused. 36 del options # Unused.
37 for i in xrange(0, 100): 37 for i in xrange(0, 3):
38 yield 'dummy_test_%i' % i, () 38 yield 'dummy_test_%i' % i, ()
39 39
40 def DummyTest(self): 40 def DummyTest(self):
41 pass 41 pass
42 42
43 43
44 def load_tests(loader, tests, pattern): 44 def load_tests(loader, tests, pattern):
45 del loader, tests, pattern # Unused. 45 del loader, tests, pattern # Unused.
46 return serially_executed_browser_test_case.LoadAllTestsInModule( 46 return serially_executed_browser_test_case.LoadAllTestsInModule(
47 sys.modules[__name__]) 47 sys.modules[__name__])
OLDNEW
« no previous file with comments | « telemetry/bin/run_browser_tests ('k') | telemetry/examples/browser_tests/process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698