Best practice to test custom ansible modules

Hi,

I just looking for a good way to test my custom ansible modules.

I know I can create a test-role which is doing it, but maybe there is already a solution out of the box or a best-practise (didnt find smth like that till now)

Greetings
Michael