test(ci): own iNES macOS coverage and portable fixture paths

This commit is contained in:
64579525
2026-10-13 11:04:10 +08:00
parent d4530488c3
commit 2d1d8c45ea
2 changed files with 35 additions and 3 deletions
+6
View File
@@ -4,6 +4,12 @@
export const SCOPES = {
// Apple artifact CLI/MCP lane on macOS, including its focused regressions.
apple: [
"src/artifacts/InesArtifactReader.ts",
"src/domain/inesContainer.ts",
"tests/fixtures/ines.ts",
"tests/acceptance/inesContainer.test.ts",
"tests/boundary/filesystem/inesArtifact.test.ts",
"tests/boundary/filesystem/inesCancellation.test.ts",
"src/native/Apple*",
"src/native/NativeMacOS*",
"src/native/NativeUi*",
@@ -7,6 +7,7 @@ import {
writeFile,
} from "node:fs/promises";
import { dirname, join, matchesGlob } from "node:path";
import { fileURLToPath } from "node:url";
import { afterAll, beforeAll, expect, it } from "vitest";
import { parse } from "yaml";
@@ -83,7 +84,7 @@ async function classify(
await writeFile(output, "");
const result = await execFileAsync(
process.execPath,
[new URL("../../../scripts/ci/plan.mjs", import.meta.url).pathname],
[fileURLToPath(new URL("../../../scripts/ci/plan.mjs", import.meta.url))],
{
cwd: directory,
env: {
@@ -316,6 +317,30 @@ it.each([
"tests/boundary/cli/nativePlistCli.test.ts",
{ code: true, apple: true, package: false, runtime: false },
],
[
"src/artifacts/InesArtifactReader.ts",
{ code: true, apple: true, package: false, runtime: true },
],
[
"src/domain/inesContainer.ts",
{ code: true, apple: true, docs: true, package: false, runtime: true },
],
[
"tests/fixtures/ines.ts",
{ code: true, apple: true, package: false, runtime: false },
],
[
"tests/acceptance/inesContainer.test.ts",
{ code: true, apple: true, package: false, runtime: false },
],
[
"tests/boundary/filesystem/inesArtifact.test.ts",
{ code: true, apple: true, package: false, runtime: false },
],
[
"tests/boundary/filesystem/inesCancellation.test.ts",
{ code: true, apple: true, package: false, runtime: false },
],
[
"tests/boundary/filesystem/windowsNpxRegistration.test.ts",
{ code: true, package: true, runtime: true, apple: false },
@@ -419,8 +444,9 @@ it.each([
);
it("rejects skipped selected work while allowing unselected lanes to skip", async () => {
const command = new URL("../../../scripts/ci/required.mjs", import.meta.url)
.pathname;
const command = fileURLToPath(
new URL("../../../scripts/ci/required.mjs", import.meta.url),
);
const jobs = {
changes: { result: "success", outputs: { evm: "true" } },
static: { result: "success" },