webdriver_test_tools.project.cmd.common module

webdriver_test_tools.project.cmd.common.get_test_parent_parser(parents=[])[source]

Returns an ArgumentParser with --test, --skip, --module, and --skip-module arguments

Parameters

parents – (Optional) List of ArgumentParser objects to use as parents for the test argument parser

Returns

ArgumentParser with --test, --skip, --module, and --skip-module arguments

webdriver_test_tools.project.cmd.common.parse_test_names(test_name_args)[source]

Returns a dictionary mapping test case names to a list of test functions

Parameters

test_name_args – The parsed value of the --test or --skip arguments

Returns

None if test_name_args is None, otherwise return a dictionary mapping test case names to a list of test functions to run. If list is empty, no specific function was given for that class

webdriver_test_tools.project.cmd.common.parse_test_args(args)[source]

Parse optional arguments for specifying/skipping tests and modules

Parameters

args – The namespace returned by parser.parse_args()

Returns

A dictionary mapping ‘test_class_map’, ‘skip_class_map’, ‘test_module_names’, and ‘skip_module_names’ to the arguments passed via the command line