How to use roles/../tests directory

Hi everyone,

As you know, the standard structure of a Ansible role has the directories /default, /handlers, /meta, /tasks, /templates, /vars and /tests. I have basic question of the directory /tests in Ansible roles, but I can’t find the answers. Can you let me know what is the purpose this /tests directory? Is it for testing funtional tasks? Is it possible for Ansible to automatically find yml files in /tests from /tasks/main.yml using include_tasks method?

Thank you for your answer.

Kind regards,
Alex Pham

https://stackoverflow.com/questions/70898834/which-tools-use-the-tests-directory-in-an-ansible-role-by-default

Walter