##### 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: TestConfig
    :rtype: list[str]
    """
    paths = detect_changes(args)
    if not args.metadata.change_description:
        if paths:
            changes = categorize_changes(args, paths, args.command)
        else:
            changes = ChangeDescription()
        args.metadata.change_description = changes
    if paths is None:
        return []  
    if not paths:
        raise NoChangesDetected()
    if args.metadata.change_description.targets is None:
        raise NoTestsForChanges()
    return args.metadata.change_description.targets
def detect_changes(args):