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