##### SUMMARY

Support collection roles as integration test targets.

Now that https://github.com/ansible/ansible/issues/59462 has been merged, ansible-test can be updated to support running integration test targets that are collection roles.

The planned convention is to look for targets under `roles/test/` and allow use of target-specific plugins from `plugins/{plugin_type}/test/{target_name}/`.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

ansible-test

##### ADDITIONAL INFORMATION

This will allow integration test targets to be written using collections instead of pre-collection roles.
"""
    :type args: IntegrationConfig
    :type path: str
    """
    if args.explain:
        return
    os.mkdir(path)
    os.chmod(path, MODE_DIRECTORY)
    if args.coverage:
        coverage_config_path = os.path.join(path, COVERAGE_CONFIG_NAME)
        coverage_config = generate_coverage_config(args)
        write_text_file(coverage_config_path, coverage_config)
        os.chmod(coverage_config_path, MODE_FILE)
        coverage_output_path = os.path.join(path, ResultType.COVERAGE.name)
        os.mkdir(coverage_output_path)
        os.chmod(coverage_output_path, MODE_DIRECTORY_WRITE)
def generate_dependency_map(integration_targets):