@code-pushup/coverage-plugin 0.44.4 → 0.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/bin.js +506 -355
- package/index.js +981 -970
- package/package.json +3 -3
- package/src/lib/nx/coverage-paths.d.ts +6 -1
- package/src/lib/runner/constants.d.ts +1 -0
- package/src/lib/runner/lcov/lcov-runner.d.ts +7 -0
- package/src/lib/runner/lcov/merge-lcov.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/coverage-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@code-pushup/models": "0.
|
|
6
|
-
"@code-pushup/utils": "0.
|
|
5
|
+
"@code-pushup/models": "0.45.1",
|
|
6
|
+
"@code-pushup/utils": "0.45.1",
|
|
7
7
|
"parse-lcov": "^1.0.4",
|
|
8
8
|
"chalk": "^5.3.0",
|
|
9
9
|
"zod": "^3.22.4"
|
|
@@ -17,4 +17,9 @@ export type JestCoverageConfig = {
|
|
|
17
17
|
coverageDirectory?: string;
|
|
18
18
|
coverageReporters?: string[];
|
|
19
19
|
};
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function getCoveragePathsForTarget(targetConfig: TargetConfiguration, pathToRoot: string, targetContext: string): Promise<CoverageResult>;
|
|
21
|
+
export declare function getCoveragePathForVitest(pathToConfig: string, pathToRoot: string, context: string): Promise<{
|
|
22
|
+
pathToProject: string;
|
|
23
|
+
resultsPath: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function getCoveragePathForJest(pathToConfig: string, pathToRoot: string, context: string): Promise<string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LCOVRecord } from 'parse-lcov';
|
|
1
2
|
import { AuditOutputs } from '@code-pushup/models';
|
|
2
3
|
import { CoverageResult, CoverageType } from '../../config';
|
|
3
4
|
/**
|
|
@@ -7,3 +8,9 @@ import { CoverageResult, CoverageType } from '../../config';
|
|
|
7
8
|
* @returns Audit outputs with complete coverage data.
|
|
8
9
|
*/
|
|
9
10
|
export declare function lcovResultsToAuditOutputs(results: CoverageResult[], coverageTypes: CoverageType[]): Promise<AuditOutputs>;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param results Paths to LCOV results
|
|
14
|
+
* @returns Array of parsed LCOVRecords.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseLcovFiles(results: CoverageResult[]): Promise<LCOVRecord[]>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BranchesDetails, FunctionsDetails, LCOVRecord, LinesDetails } from 'parse-lcov';
|
|
2
|
+
export declare function mergeLcovResults(records: LCOVRecord[]): LCOVRecord[];
|
|
3
|
+
export declare function mergeDuplicateLcovRecords(records: LCOVRecord[]): LCOVRecord;
|
|
4
|
+
export declare function mergeLcovLineDetails(details: LinesDetails[][]): LinesDetails[];
|
|
5
|
+
export declare function mergeLcovBranchesDetails(details: BranchesDetails[][]): BranchesDetails[];
|
|
6
|
+
export declare function mergeLcovFunctionsDetails(details: FunctionsDetails[][]): FunctionsDetails[];
|