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

Unified Diff: build/android/pylib/base/base_test_result_unittest.py

Issue 342823004: [Android] Switch long form test result reporting to a gtest-esque format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « build/android/pylib/base/base_test_result.py ('k') | build/android/pylib/utils/report_results.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/base/base_test_result_unittest.py
diff --git a/build/android/pylib/base/base_test_result_unittest.py b/build/android/pylib/base/base_test_result_unittest.py
index 591b8f3868f5f1c2874c6804bb6af77ac07ecbe5..6f0cba7726e401d8380ddc6e1e9475e22299be6b 100644
--- a/build/android/pylib/base/base_test_result_unittest.py
+++ b/build/android/pylib/base/base_test_result_unittest.py
@@ -61,14 +61,16 @@ class TestTestRunResults(unittest.TestCase):
'CRASH: 1 TIMEOUT: 0 UNKNOWN: 1 ')
self.assertEqual(self.tr.GetShortForm(), short_print)
- def testGetLongForm(self):
- long_print = ('ALL (5 tests)\n'
- 'PASS (2 tests)\n'
- 'FAIL (1 tests): [f1]\n'
- 'CRASH (1 tests): [c1]\n'
- 'TIMEOUT (0 tests): []\n'
- 'UNKNOWN (1 tests): [u1]')
- self.assertEqual(self.tr.GetLongForm(), long_print)
+ def testGetGtestForm(self):
+ gtest_print = ('[==========] 5 tests ran.\n'
+ '[ PASSED ] 2 tests.\n'
+ '[ FAILED ] 3 tests, listed below:\n'
+ '[ FAILED ] f1\n'
+ '[ FAILED ] c1 (CRASHED)\n'
+ '[ FAILED ] u1 (UNKNOWN)\n'
+ '\n'
+ '3 FAILED TESTS')
+ self.assertEqual(gtest_print, self.tr.GetGtestForm())
def testRunPassed(self):
self.assertFalse(self.tr.DidRunPass())
« no previous file with comments | « build/android/pylib/base/base_test_result.py ('k') | build/android/pylib/utils/report_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698