LPS-51439 Refactor report-test-coverage as a macro

Backport pull at https://github.com/brianchandotcom/liferay-portal-ee/pull/7716
Plugins has no such function