naiveproxy/build/android/pylib/junit/junit_test_instance.py

70 lines
1.5 KiB
Python
Raw Normal View History

2018-01-28 19:30:36 +03:00
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from pylib.base import test_instance
class JunitTestInstance(test_instance.TestInstance):
def __init__(self, args, _):
super(JunitTestInstance, self).__init__()
self._android_manifest_path = args.android_manifest_path
self._coverage_dir = args.coverage_dir
self._package_filter = args.package_filter
self._package_name = args.package_name
self._resource_zips = args.resource_zips
self._robolectric_runtime_deps_dir = args.robolectric_runtime_deps_dir
self._runner_filter = args.runner_filter
self._test_filter = args.test_filter
self._test_suite = args.test_suite
#override
def TestType(self):
return 'junit'
#override
def SetUp(self):
pass
#override
def TearDown(self):
pass
@property
def android_manifest_path(self):
return self._android_manifest_path
@property
def coverage_dir(self):
return self._coverage_dir
@property
def package_filter(self):
return self._package_filter
@property
def package_name(self):
return self._package_name
@property
def resource_zips(self):
return self._resource_zips
@property
def robolectric_runtime_deps_dir(self):
return self._robolectric_runtime_deps_dir
@property
def runner_filter(self):
return self._runner_filter
@property
def test_filter(self):
return self._test_filter
@property
def suite(self):
return self._test_suite