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

Unified Diff: telemetry/examples/browser_tests/simple_sharding_test.py

Issue 2065853002: Add sharding support to browser_test_runner. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Rebased. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: telemetry/examples/browser_tests/simple_sharding_test.py
diff --git a/telemetry/examples/browser_tests/simple_sharding_test.py b/telemetry/examples/browser_tests/simple_sharding_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..be56d6c9a77e695cfa2fe65bac9afc3bb52a0a48
--- /dev/null
+++ b/telemetry/examples/browser_tests/simple_sharding_test.py
@@ -0,0 +1,27 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry.testing import serially_executed_browser_test_case
+
+
+class SimpleShardingTest(
+ serially_executed_browser_test_case.SeriallyBrowserTestCase):
+
+ def Test1(self):
+ pass
+
+ def Test2(self):
+ pass
+
+ def Test3(self):
+ pass
+
+ @classmethod
+ def GenerateTestCases_PassingTest(cls, options):
+ del options # unused
+ for i in xrange(10):
+ yield 'passing_test_' + str(i), (i,)
+
+ def PassingTest(self, a):
+ self.assertGreaterEqual(a, 0)
« no previous file with comments | « no previous file | telemetry/telemetry/testing/browser_test_runner.py » ('j') | telemetry/telemetry/testing/browser_test_runner.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698