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

Unified Diff: build/android/test_result.py

Issue 10210001: Add test summaries for native tests for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/run_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_result.py
diff --git a/build/android/test_result.py b/build/android/test_result.py
index 5f1a3e2c9d4873c77fafef0d0e22c4515789918b..dfafca7007fd84c71023419b5bff98c1bafff847 100644
--- a/build/android/test_result.py
+++ b/build/android/test_result.py
@@ -112,3 +112,17 @@ class TestResults(object):
if not self.GetAllBroken():
logging.critical('Passed')
logging.critical('*' * 80)
+
+ # Summarize in the test output.
+ summary_string = 'Summary:\n'
+ summary_string += 'RAN=%d\n' % (len(self.ok) + len(self.failed) +
+ len(self.crashed) + len(self.unknown))
+ summary_string += 'PASSED=%d\n' % (len(self.ok))
+ summary_string += 'FAILED=%d %s\n' % (len(self.failed),
+ [t.name for t in self.failed])
+ summary_string += 'CRASHED=%d %s\n' % (len(self.crashed),
+ [t.name for t in self.crashed])
+ summary_string += 'UNKNOWN=%d %s\n' % (len(self.unknown),
+ [t.name for t in self.unknown])
+ logging.critical(summary_string)
+ return summary_string
« no previous file with comments | « build/android/run_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698