AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions | Variables
gtest_shuffle_test Namespace Reference

Classes

class  GTestShuffleUnitTest
 

Functions

def AlsoRunDisabledTestsFlag ()
 
def FilterFlag (test_filter)
 
def RepeatFlag (n)
 
def ShuffleFlag ()
 
def RandomSeedFlag (n)
 
def RunAndReturnOutput (extra_env, args)
 
def GetTestsForAllIterations (extra_env, args)
 
def GetTestCases (tests)
 
def CalculateTestLists ()
 

Variables

 COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_shuffle_test_')
 
string TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS'
 
string SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX'
 
string TEST_FILTER = 'A*.A:A*.B:C*'
 
list ALL_TESTS = []
 
list ACTIVE_TESTS = []
 
list FILTERED_TESTS = []
 
list SHARDED_TESTS = []
 
list SHUFFLED_ALL_TESTS = []
 
list SHUFFLED_ACTIVE_TESTS = []
 
list SHUFFLED_FILTERED_TESTS = []
 
list SHUFFLED_SHARDED_TESTS = []
 

Function Documentation

◆ AlsoRunDisabledTestsFlag()

def gtest_shuffle_test.AlsoRunDisabledTestsFlag ( )

◆ CalculateTestLists()

def gtest_shuffle_test.CalculateTestLists ( )
Calculates the list of tests run under different flags.

◆ FilterFlag()

def gtest_shuffle_test.FilterFlag (   test_filter)

◆ GetTestCases()

def gtest_shuffle_test.GetTestCases (   tests)
Returns a list of test cases in the given full test names.

Args:
  tests: a list of full test names

Returns:
  A list of test cases from 'tests', in their original order.
  Consecutive duplicates are removed.

◆ GetTestsForAllIterations()

def gtest_shuffle_test.GetTestsForAllIterations (   extra_env,
  args 
)
Runs the test program and returns a list of test lists.

Args:
  extra_env: a map from environment variables to their values
  args: command line flags to pass to gtest_shuffle_test_

Returns:
  A list where the i-th element is the list of tests run in the i-th
  test iteration.

◆ RandomSeedFlag()

def gtest_shuffle_test.RandomSeedFlag (   n)

◆ RepeatFlag()

def gtest_shuffle_test.RepeatFlag (   n)

◆ RunAndReturnOutput()

def gtest_shuffle_test.RunAndReturnOutput (   extra_env,
  args 
)
Runs the test program and returns its output.

◆ ShuffleFlag()

def gtest_shuffle_test.ShuffleFlag ( )

Variable Documentation

◆ ACTIVE_TESTS

list gtest_shuffle_test.ACTIVE_TESTS = []

◆ ALL_TESTS

list gtest_shuffle_test.ALL_TESTS = []

◆ COMMAND

gtest_shuffle_test.COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_shuffle_test_')

◆ FILTERED_TESTS

list gtest_shuffle_test.FILTERED_TESTS = []

◆ SHARD_INDEX_ENV_VAR

string gtest_shuffle_test.SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX'

◆ SHARDED_TESTS

list gtest_shuffle_test.SHARDED_TESTS = []

◆ SHUFFLED_ACTIVE_TESTS

list gtest_shuffle_test.SHUFFLED_ACTIVE_TESTS = []

◆ SHUFFLED_ALL_TESTS

list gtest_shuffle_test.SHUFFLED_ALL_TESTS = []

◆ SHUFFLED_FILTERED_TESTS

list gtest_shuffle_test.SHUFFLED_FILTERED_TESTS = []

◆ SHUFFLED_SHARDED_TESTS

list gtest_shuffle_test.SHUFFLED_SHARDED_TESTS = []

◆ TEST_FILTER

string gtest_shuffle_test.TEST_FILTER = 'A*.A:A*.B:C*'

◆ TOTAL_SHARDS_ENV_VAR

string gtest_shuffle_test.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