OLD | NEW |
(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() |
OLD | NEW |