How to test ejabberd modules (gen_mod + gen_server)

I implemented some ejabberd modules (using both gen_mod and gen_server behaviour).

These modules are loaded into ejabberd supervision tree and seems to work in shell but I would like to test them in a better way (e.g. eunit).

Can you tell me what is the best way to test ejabberd modules?

Syndicate content