Commit 1dc82ffc authored by imasaki@google.com's avatar imasaki@google.com

Adding passing rate in stats csv file in the layout test analyzer.

Review URL: http://codereview.chromium.org/8539024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109725 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c149c69
......@@ -146,9 +146,9 @@ class AnalyzerResultMap:
a tuple of stats and issues_txt
stats: analyzer result in CSV format that shows:
(current_time, the number of tests, the number of skipped tests,
the number of failing tests)
the number of failing tests, passing rate)
For example,
"2011-11-10-15,204,22,12"
"2011-11-10-15,204,22,12,94"
issues_txt: issues listed in CSV format that shows:
(BUGWK or BUGCR, bug number, the test expectation entry,
the name of the test)
......@@ -158,7 +158,8 @@ class AnalyzerResultMap:
"""
stats = ','.join([current_time, str(len(self.result_map['whole'].keys())),
str(len(self.result_map['skip'].keys())),
str(len(self.result_map['nonskip'].keys()))])
str(len(self.result_map['nonskip'].keys())),
str(self.GetPassingRate())])
issues_txt = ''
for bug_txt, test_info_list in (
self.GetListOfBugsForNonSkippedTests().iteritems()):
......
......@@ -188,7 +188,7 @@ class TestLayoutTestAnalyzerHelpers(unittest.TestCase):
analyzerResultMapBase = (
layouttest_analyzer_helpers.AnalyzerResultMap.Load(file_path))
data, issues_txt = analyzerResultMapBase.ConvertToCSVText('11-10-10-2011')
self.assertEquals(data, '11-10-10-2011,204,36,10')
self.assertEquals(data, '11-10-10-2011,204,36,10,95')
expected_issues_txt = """\
BUGWK,66310,TEXT PASS,media/media-blocked-by-beforeload.html,DEBUG TEXT PASS,\
media/video-source-error.html,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment