webdriver_test_tools.project.cmd.common module¶
-
webdriver_test_tools.project.cmd.common.get_test_parent_parser(parents=[])[source]¶ Returns an
ArgumentParserwith--test,--skip,--module, and--skip-modulearguments- Parameters
parents – (Optional) List of
ArgumentParserobjects to use as parents for the test argument parser- Returns
ArgumentParserwith--test,--skip,--module, and--skip-modulearguments
-
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
--testor--skiparguments- Returns
None if
test_name_argsis 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