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

Side by Side Diff: Tools/AutoSheriff/reasons_unittest.py

Issue 398823008: WIP: Add auto-sheriff.appspot.com code to Blink Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import unittest
6 import reasons
7
8
9 class JUnitSplitterTest(unittest.TestCase):
10 def test_failed_tests_from_stdio(self):
11 splitter = reasons.JUnitSplitter()
12 stdio = """
13 C 367.973s Main [ FAILED ] 14 tests, listed below:
14 C 367.973s Main [ FAILED ] org.chromium.android_webview.test.AwContentsClien tShouldOverrideUrlLoadingTest#testCalledForUnsupportedSchemes
15 C 59.798s Main [ FAILED ] org.chromium.mojo.system.impl.CoreImplTest#testAs yncWaiterWaitingOnDefaultInvalidHandle (CRASHED)
16 """
17 expected = [
18 'org.chromium.android_webview.test.AwContentsClientShouldOverrideUrl LoadingTest#testCalledForUnsupportedSchemes',
19 'org.chromium.mojo.system.impl.CoreImplTest#testAsyncWaiterWaitingOn DefaultInvalidHandle',
20 ]
21 self.assertEquals(splitter.failed_tests_from_stdio(stdio), expected)
22
23
24 if __name__ == '__main__':
25 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698