OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from pylib.base import test_instance | 5 from pylib.base import test_instance |
6 | 6 |
7 | 7 |
8 class JunitTestInstance(test_instance.TestInstance): | 8 class JunitTestInstance(test_instance.TestInstance): |
9 | 9 |
10 def __init__(self, args, _): | 10 def __init__(self, args, _): |
11 super(JunitTestInstance, self).__init__() | 11 super(JunitTestInstance, self).__init__() |
12 | 12 |
13 self._android_manifest_path = args.android_manifest_path | |
14 self._coverage_dir = args.coverage_dir | 13 self._coverage_dir = args.coverage_dir |
15 self._package_filter = args.package_filter | 14 self._package_filter = args.package_filter |
16 self._package_name = args.package_name | |
17 self._resource_zips = args.resource_zips | |
18 self._robolectric_runtime_deps_dir = args.robolectric_runtime_deps_dir | |
19 self._runner_filter = args.runner_filter | 15 self._runner_filter = args.runner_filter |
20 self._test_filter = args.test_filter | 16 self._test_filter = args.test_filter |
21 self._test_suite = args.test_suite | 17 self._test_suite = args.test_suite |
22 | 18 |
23 #override | 19 #override |
24 def TestType(self): | 20 def TestType(self): |
25 return 'junit' | 21 return 'junit' |
26 | 22 |
27 #override | 23 #override |
28 def SetUp(self): | 24 def SetUp(self): |
29 pass | 25 pass |
30 | 26 |
31 #override | 27 #override |
32 def TearDown(self): | 28 def TearDown(self): |
33 pass | 29 pass |
34 | 30 |
35 @property | 31 @property |
36 def android_manifest_path(self): | |
37 return self._android_manifest_path | |
38 | |
39 @property | |
40 def coverage_dir(self): | 32 def coverage_dir(self): |
41 return self._coverage_dir | 33 return self._coverage_dir |
42 | 34 |
43 @property | 35 @property |
44 def package_filter(self): | 36 def package_filter(self): |
45 return self._package_filter | 37 return self._package_filter |
46 | 38 |
47 @property | 39 @property |
48 def package_name(self): | |
49 return self._package_name | |
50 | |
51 @property | |
52 def resource_zips(self): | |
53 return self._resource_zips | |
54 | |
55 @property | |
56 def robolectric_runtime_deps_dir(self): | |
57 return self._robolectric_runtime_deps_dir | |
58 | |
59 @property | |
60 def runner_filter(self): | 40 def runner_filter(self): |
61 return self._runner_filter | 41 return self._runner_filter |
62 | 42 |
63 @property | 43 @property |
64 def test_filter(self): | 44 def test_filter(self): |
65 return self._test_filter | 45 return self._test_filter |
66 | 46 |
67 @property | 47 @property |
68 def suite(self): | 48 def suite(self): |
69 return self._test_suite | 49 return self._test_suite |
OLD | NEW |