AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | GTestFilterUnitTest |
Functions | |
def | SetEnvVar (env_var, value) |
def | RunAndReturnOutput (args=None) |
def | RunAndExtractTestList (args=None) |
def | InvokeWithModifiedEnv (extra_env, function, args, kwargs) |
def | RunWithSharding (total_shards, shard_index, command) |
Variables | |
child | |
CAN_PASS_EMPTY_ENV = eval(child.output) | |
CAN_UNSET_ENV = eval(child.output) | |
tuple | CAN_TEST_EMPTY_FILTER = (CAN_PASS_EMPTY_ENV and CAN_UNSET_ENV) |
string | FILTER_ENV_VAR = 'GTEST_FILTER' |
string | TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS' |
string | SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX' |
string | SHARD_STATUS_FILE_ENV_VAR = 'GTEST_SHARD_STATUS_FILE' |
string | FILTER_FLAG = 'gtest_filter' |
string | ALSO_RUN_DISABED_TESTS_FLAG = 'gtest_also_run_disabled_tests' |
COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_filter_unittest_') | |
PARAM_TEST_REGEX = re.compile(r'/ParamTest') | |
TEST_CASE_REGEX = re.compile(r'^\[\-+\] \d+ tests? from (\w+(/\w+)?)') | |
TEST_REGEX = re.compile(r'^\[\s*RUN\s*\].*\.(\w+(/\w+)?)') | |
string | LIST_TESTS_FLAG = '--gtest_list_tests' |
string | SUPPORTS_DEATH_TESTS |
list | PARAM_TESTS |
list | DISABLED_TESTS |
list | DEATH_TESTS |
list | ACTIVE_TESTS |
param_tests_present = None | |
environ = os.environ.copy() | |
def gtest_filter_unittest.InvokeWithModifiedEnv | ( | extra_env, | |
function, | |||
args, | |||
kwargs | |||
) |
Runs the given function and arguments in a modified environment.
def gtest_filter_unittest.RunAndExtractTestList | ( | args = None | ) |
Runs the test program and returns its exit code and a list of tests run.
def gtest_filter_unittest.RunAndReturnOutput | ( | args = None | ) |
Runs the test program and returns its output.
def gtest_filter_unittest.RunWithSharding | ( | total_shards, | |
shard_index, | |||
command | |||
) |
Runs a test program shard and returns exit code and a list of tests run.
def gtest_filter_unittest.SetEnvVar | ( | env_var, | |
value | |||
) |
Sets the env variable to 'value'; unsets it when 'value' is None.
list gtest_filter_unittest.ACTIVE_TESTS |
string gtest_filter_unittest.ALSO_RUN_DISABED_TESTS_FLAG = 'gtest_also_run_disabled_tests' |
gtest_filter_unittest.CAN_PASS_EMPTY_ENV = eval(child.output) |
tuple gtest_filter_unittest.CAN_TEST_EMPTY_FILTER = (CAN_PASS_EMPTY_ENV and CAN_UNSET_ENV) |
gtest_filter_unittest.CAN_UNSET_ENV = eval(child.output) |
gtest_filter_unittest.child |
gtest_filter_unittest.COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_filter_unittest_') |
list gtest_filter_unittest.DEATH_TESTS |
list gtest_filter_unittest.DISABLED_TESTS |
gtest_filter_unittest.environ = os.environ.copy() |
string gtest_filter_unittest.FILTER_ENV_VAR = 'GTEST_FILTER' |
string gtest_filter_unittest.FILTER_FLAG = 'gtest_filter' |
string gtest_filter_unittest.LIST_TESTS_FLAG = '--gtest_list_tests' |
gtest_filter_unittest.PARAM_TEST_REGEX = re.compile(r'/ParamTest') |
list gtest_filter_unittest.PARAM_TESTS |
gtest_filter_unittest.param_tests_present = None |
string gtest_filter_unittest.SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX' |
string gtest_filter_unittest.SHARD_STATUS_FILE_ENV_VAR = 'GTEST_SHARD_STATUS_FILE' |
string gtest_filter_unittest.SUPPORTS_DEATH_TESTS |
gtest_filter_unittest.TEST_CASE_REGEX = re.compile(r'^\[\-+\] \d+ tests? from (\w+(/\w+)?)') |
gtest_filter_unittest.TEST_REGEX = re.compile(r'^\[\s*RUN\s*\].*\.(\w+(/\w+)?)') |
string gtest_filter_unittest.TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS' |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0