@code-pushup/coverage-plugin 0.18.1 → 0.19.0
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/bin.js +15 -23
- package/index.js +13 -14
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -629,28 +629,8 @@ function executeProcess(cfg) {
|
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
// packages/utils/src/lib/git.ts
|
|
633
|
-
import { simpleGit } from "simple-git";
|
|
634
|
-
var git = simpleGit();
|
|
635
|
-
|
|
636
|
-
// packages/utils/src/lib/progress.ts
|
|
637
|
-
import chalk2 from "chalk";
|
|
638
|
-
import { MultiProgressBars } from "multi-progress-bars";
|
|
639
|
-
|
|
640
|
-
// packages/utils/src/lib/reports/generate-stdout-summary.ts
|
|
641
|
-
import cliui from "@isaacs/cliui";
|
|
642
|
-
import chalk3 from "chalk";
|
|
643
|
-
import CliTable3 from "cli-table3";
|
|
644
|
-
|
|
645
632
|
// packages/utils/src/lib/transform.ts
|
|
646
633
|
import { platform } from "node:os";
|
|
647
|
-
function toUnixPath(path, options) {
|
|
648
|
-
const unixPath = path.replace(/\\/g, "/");
|
|
649
|
-
if (options?.toRelative) {
|
|
650
|
-
return unixPath.replace(`${process.cwd().replace(/\\/g, "/")}/`, "");
|
|
651
|
-
}
|
|
652
|
-
return unixPath;
|
|
653
|
-
}
|
|
654
634
|
function toUnixNewlines(text) {
|
|
655
635
|
return platform() === "win32" ? text.replace(/\r\n/g, "\n") : text;
|
|
656
636
|
}
|
|
@@ -674,8 +654,20 @@ function toOrdinal(value) {
|
|
|
674
654
|
return `${value}th`;
|
|
675
655
|
}
|
|
676
656
|
|
|
657
|
+
// packages/utils/src/lib/git.ts
|
|
658
|
+
import { simpleGit } from "simple-git";
|
|
659
|
+
|
|
677
660
|
// packages/utils/src/lib/logging.ts
|
|
661
|
+
import chalk2 from "chalk";
|
|
662
|
+
|
|
663
|
+
// packages/utils/src/lib/progress.ts
|
|
664
|
+
import chalk3 from "chalk";
|
|
665
|
+
import { MultiProgressBars } from "multi-progress-bars";
|
|
666
|
+
|
|
667
|
+
// packages/utils/src/lib/reports/generate-stdout-summary.ts
|
|
668
|
+
import cliui from "@isaacs/cliui";
|
|
678
669
|
import chalk4 from "chalk";
|
|
670
|
+
import CliTable3 from "cli-table3";
|
|
679
671
|
|
|
680
672
|
// packages/plugin-coverage/src/lib/runner/constants.ts
|
|
681
673
|
import { join as join2 } from "node:path";
|
|
@@ -719,7 +711,7 @@ function lcovReportToFunctionStat(record) {
|
|
|
719
711
|
message: `Function ${detail.name} is not called in any test case.`,
|
|
720
712
|
severity: "error",
|
|
721
713
|
source: {
|
|
722
|
-
file:
|
|
714
|
+
file: record.file,
|
|
723
715
|
position: { startLine: detail.line }
|
|
724
716
|
}
|
|
725
717
|
})
|
|
@@ -739,7 +731,7 @@ function lcovReportToLineStat(record) {
|
|
|
739
731
|
message: `${lineReference} not covered in any test case.`,
|
|
740
732
|
severity: "warning",
|
|
741
733
|
source: {
|
|
742
|
-
file:
|
|
734
|
+
file: record.file,
|
|
743
735
|
position: {
|
|
744
736
|
startLine: linePosition.start,
|
|
745
737
|
endLine: linePosition.end
|
|
@@ -760,7 +752,7 @@ function lcovReportToBranchStat(record) {
|
|
|
760
752
|
)} branch is not taken in any test case.`,
|
|
761
753
|
severity: "error",
|
|
762
754
|
source: {
|
|
763
|
-
file:
|
|
755
|
+
file: record.file,
|
|
764
756
|
position: { startLine: detail.line }
|
|
765
757
|
}
|
|
766
758
|
})
|
package/index.js
CHANGED
|
@@ -567,19 +567,6 @@ function pluginWorkDir(slug) {
|
|
|
567
567
|
return join("node_modules", ".code-pushup", slug);
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
// packages/utils/src/lib/git.ts
|
|
571
|
-
import { simpleGit } from "simple-git";
|
|
572
|
-
var git = simpleGit();
|
|
573
|
-
|
|
574
|
-
// packages/utils/src/lib/progress.ts
|
|
575
|
-
import chalk2 from "chalk";
|
|
576
|
-
import { MultiProgressBars } from "multi-progress-bars";
|
|
577
|
-
|
|
578
|
-
// packages/utils/src/lib/reports/generate-stdout-summary.ts
|
|
579
|
-
import cliui from "@isaacs/cliui";
|
|
580
|
-
import chalk3 from "chalk";
|
|
581
|
-
import CliTable3 from "cli-table3";
|
|
582
|
-
|
|
583
570
|
// packages/utils/src/lib/transform.ts
|
|
584
571
|
function capitalize(text) {
|
|
585
572
|
return `${text.charAt(0).toLocaleUpperCase()}${text.slice(
|
|
@@ -587,12 +574,24 @@ function capitalize(text) {
|
|
|
587
574
|
)}`;
|
|
588
575
|
}
|
|
589
576
|
|
|
577
|
+
// packages/utils/src/lib/git.ts
|
|
578
|
+
import { simpleGit } from "simple-git";
|
|
579
|
+
|
|
590
580
|
// packages/utils/src/lib/logging.ts
|
|
581
|
+
import chalk2 from "chalk";
|
|
582
|
+
|
|
583
|
+
// packages/utils/src/lib/progress.ts
|
|
584
|
+
import chalk3 from "chalk";
|
|
585
|
+
import { MultiProgressBars } from "multi-progress-bars";
|
|
586
|
+
|
|
587
|
+
// packages/utils/src/lib/reports/generate-stdout-summary.ts
|
|
588
|
+
import cliui from "@isaacs/cliui";
|
|
591
589
|
import chalk4 from "chalk";
|
|
590
|
+
import CliTable3 from "cli-table3";
|
|
592
591
|
|
|
593
592
|
// packages/plugin-coverage/package.json
|
|
594
593
|
var name = "@code-pushup/coverage-plugin";
|
|
595
|
-
var version = "0.
|
|
594
|
+
var version = "0.19.0";
|
|
596
595
|
|
|
597
596
|
// packages/plugin-coverage/src/lib/config.ts
|
|
598
597
|
import { z as z13 } from "zod";
|