Find the affected set of test modules that would run in a test mapping run based on the given test mappings, changed files, and test mapping test group.
Args:
test_mappings: A set of test mappings returned by GetTestMappings in the following format:
{
'test_mapping_file_path': {
'group_name' : [
'name': 'module_name',
],
}
}
changed_files: A set of files changed for the given run.
test_mapping_test_groups: A set of test mapping test groups that are being considered for the given run.
Returns:
A set of test module names which would run for a test mapping test run with the given parameters.
"""
modules=set()
fortest_mappingintest_mappings.values():
forgroup_name,groupintest_mapping.items():
# If a module is not in any of the test mapping groups being tested skip