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

Unified Diff: tools/telemetry/telemetry/unittest/progress_reporter_unittest.py

Issue 439503006: For consistency with benchmark, rename unittest.output_formatter -> progress_reporter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tic_gtest_did_run_test
Patch Set: Rebase. Created 6 years, 4 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: tools/telemetry/telemetry/unittest/progress_reporter_unittest.py
diff --git a/tools/telemetry/telemetry/unittest/output_formatter_unittest.py b/tools/telemetry/telemetry/unittest/progress_reporter_unittest.py
similarity index 73%
rename from tools/telemetry/telemetry/unittest/output_formatter_unittest.py
rename to tools/telemetry/telemetry/unittest/progress_reporter_unittest.py
index 571062b9827d54f0db16aa17dfe210b78372cdc8..1da34f4694ce2886f4ca203d11623ad3b3df4dc3 100644
--- a/tools/telemetry/telemetry/unittest/output_formatter_unittest.py
+++ b/tools/telemetry/telemetry/unittest/progress_reporter_unittest.py
@@ -4,7 +4,7 @@
import unittest
-from telemetry.unittest import output_formatter
+from telemetry.unittest import progress_reporter
class TestFoo(unittest.TestCase):
@@ -17,7 +17,7 @@ class TestFoo(unittest.TestCase):
self.fail('expected failure')
-class LoggingOutputFormatter(object):
+class LoggingProgressReporter(object):
def __init__(self):
self._call_log = []
@@ -31,16 +31,16 @@ class LoggingOutputFormatter(object):
return wrapper
-class OutputFormatterTest(unittest.TestCase):
+class ProgressReporterTest(unittest.TestCase):
def testTestRunner(self):
- suite = output_formatter.TestSuite()
+ suite = progress_reporter.TestSuite()
suite.addTest(TestFoo(methodName='RunPassingTest'))
suite.addTest(TestFoo(methodName='RunFailingTest'))
- formatter = LoggingOutputFormatter()
- runner = output_formatter.TestRunner()
- output_formatters = (formatter,)
- result = runner.run(suite, output_formatters, 1, None)
+ reporter = LoggingProgressReporter()
+ runner = progress_reporter.TestRunner()
+ progress_reporters = (reporter,)
+ result = runner.run(suite, progress_reporters, 1, None)
self.assertEqual(len(result.successes), 1)
self.assertEqual(len(result.failures), 1)
@@ -51,4 +51,4 @@ class OutputFormatterTest(unittest.TestCase):
'StartTest', 'Failure', 'StopTest',
'StopTestSuite', 'StopTestRun',
)
- self.assertEqual(formatter.call_log, expected)
+ self.assertEqual(reporter.call_log, expected)
« no previous file with comments | « tools/telemetry/telemetry/unittest/progress_reporter.py ('k') | tools/telemetry/telemetry/unittest/run_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698