There's the OTP module "cover", which at least allows basic dynamic code coverage testing. "xref" (OTP module) might be useful for static code coverage testing.