apex-code-coverage-transformer
Version:
Transform Salesforce Apex code coverage JSONs into other formats accepted by SonarQube, GitHub, GitLab, Azure, Bitbucket, etc.
16 lines (15 loc) • 572 B
TypeScript
import { SonarCoverageObject } from '../utils/types.js';
import { BaseHandler } from './BaseHandler.js';
/**
* Handler for generating SonarQube Generic Coverage reports.
*
* This is the default format and is compatible with SonarQube and SonarCloud.
*
* @see https://docs.sonarqube.org/latest/analysis/generic-test/
*/
export declare class SonarCoverageHandler extends BaseHandler {
private readonly coverageObj;
constructor();
processFile(filePath: string, _fileName: string, lines: Record<string, number>): void;
finalize(): SonarCoverageObject;
}