supercov 4.29.3 → 4.29.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supercov",
|
|
3
|
-
"version": "4.29.
|
|
3
|
+
"version": "4.29.4",
|
|
4
4
|
"description": "Coverage, security and code quality for coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coverage",
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
"test:windows-tls": "node scripts/windows-tls-test.mjs"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@supercov/cli-darwin-arm64": "4.29.
|
|
129
|
-
"@supercov/cli-darwin-x64": "4.29.
|
|
130
|
-
"@supercov/cli-linux-arm64-gnu": "4.29.
|
|
131
|
-
"@supercov/cli-linux-arm64-musl": "4.29.
|
|
132
|
-
"@supercov/cli-linux-x64-gnu": "4.29.
|
|
133
|
-
"@supercov/cli-linux-x64-musl": "4.29.
|
|
134
|
-
"@supercov/cli-win32-arm64": "4.29.
|
|
135
|
-
"@supercov/cli-win32-x64": "4.29.
|
|
128
|
+
"@supercov/cli-darwin-arm64": "4.29.4",
|
|
129
|
+
"@supercov/cli-darwin-x64": "4.29.4",
|
|
130
|
+
"@supercov/cli-linux-arm64-gnu": "4.29.4",
|
|
131
|
+
"@supercov/cli-linux-arm64-musl": "4.29.4",
|
|
132
|
+
"@supercov/cli-linux-x64-gnu": "4.29.4",
|
|
133
|
+
"@supercov/cli-linux-x64-musl": "4.29.4",
|
|
134
|
+
"@supercov/cli-win32-arm64": "4.29.4",
|
|
135
|
+
"@supercov/cli-win32-x64": "4.29.4"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"@playwright/test": ">=1.55.0",
|
|
@@ -20,7 +20,7 @@ import { inferTestProvenance, testTags } from "./provenance.mjs";
|
|
|
20
20
|
import { appendJsonLineDurableSync, appendJsonLineSync } from "./atomic.mjs";
|
|
21
21
|
import { expandSnapshot, mergeSnapshots, columnarEvents } from "./snapshots.mjs";
|
|
22
22
|
import { COVERAGE_DOCUMENT_PHASE_COOKIE, COVERAGE_DOCUMENT_PHASE_SITE_COOKIE, COVERAGE_PHASE_HEADER, COVERAGE_PHASE_COOKIE, COVERAGE_PHASE_SITE_COOKIE, COVERAGE_SCOPE_COOKIE, COVERAGE_SCOPE_HEADER, COVERAGE_SCOPE_SITE_COOKIE, COVERAGE_CARRIER_ENV, encodeCoverageCarrier, encodeCoverageScope, serverEvidenceDirectory, serverEvidencePath, startDocumentInPhase, } from "./transport.mjs";
|
|
23
|
-
import { PAGE_TIMEOUT_MARKER, activatePageMutant, strongClaim, strongFinish } from "./playwrightStrong.mjs";
|
|
23
|
+
import { PAGE_TIMEOUT_MARKER, activatePageMutant, installCopies, ranInWorker, strongClaim, strongFinish } from "./playwrightStrong.mjs";
|
|
24
24
|
export * from "@playwright/test";
|
|
25
25
|
const generatedTargetModule = "__SUPERCOV_PLAYWRIGHT_MODULE__";
|
|
26
26
|
const targetModule = process.env["SUPERCOV_PLAYWRIGHT_MODULE"] ??
|
|
@@ -1905,6 +1905,9 @@ const instrumentedFixtures = {
|
|
|
1905
1905
|
// test is running for all of this, not only during its actions.
|
|
1906
1906
|
const startedAtMs = Date.now();
|
|
1907
1907
|
timingCount("fixture.testSetup", performance.now() - setupStarted);
|
|
1908
|
+
// A mutant that ran in this worker's own process may have left
|
|
1909
|
+
// state in it: the next test gets a new worker.
|
|
1910
|
+
let restartWorker = false;
|
|
1908
1911
|
try {
|
|
1909
1912
|
await use();
|
|
1910
1913
|
}
|
|
@@ -1944,6 +1947,7 @@ const instrumentedFixtures = {
|
|
|
1944
1947
|
}
|
|
1945
1948
|
finally {
|
|
1946
1949
|
strongFinish(testInfo, strong, { attemptId: scope.attemptId, pageTimeout: controller.mutantRanAway === true });
|
|
1950
|
+
restartWorker = ranInWorker(strong, scope.attemptId) && testInfo.status === "passed";
|
|
1947
1951
|
await timed("controller.dispose", () => controller.dispose());
|
|
1948
1952
|
timingCount("fixture.testTeardown", performance.now() - teardownStarted);
|
|
1949
1953
|
timingReport(testInfo.title);
|
|
@@ -1953,10 +1957,16 @@ const instrumentedFixtures = {
|
|
|
1953
1957
|
controllers.delete(scope.attemptId);
|
|
1954
1958
|
}
|
|
1955
1959
|
}
|
|
1960
|
+
if (restartWorker)
|
|
1961
|
+
throw new Error("Supercov strong mutation: the mutant ran in this worker's process, so the next test runs in a new worker");
|
|
1956
1962
|
},
|
|
1957
1963
|
{ auto: true },
|
|
1958
1964
|
],
|
|
1959
1965
|
};
|
|
1966
|
+
// A strong pass declares each test it needs as many times as it may run it
|
|
1967
|
+
// (playwrightStrong.mjs): on Playwright's test type, before the test object
|
|
1968
|
+
// every spec uses is made.
|
|
1969
|
+
installCopies(base);
|
|
1960
1970
|
const instrumentedTest = base.extend(instrumentedFixtures);
|
|
1961
1971
|
export const test = instrumentedTest;
|
|
1962
1972
|
// `export *` passes no default on, and `import test from "@playwright/test"`
|