mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:00:42 +00:00
Tests: scope grouped benchmark artifacts
This commit is contained in:
@@ -7,7 +7,10 @@ import {
|
||||
resolveGroupKey,
|
||||
resolveTestArea,
|
||||
} from "../../scripts/lib/test-group-report.mjs";
|
||||
import { parseTestGroupReportArgs } from "../../scripts/test-group-report.mjs";
|
||||
import {
|
||||
parseTestGroupReportArgs,
|
||||
resolveReportArtifactDirs,
|
||||
} from "../../scripts/test-group-report.mjs";
|
||||
|
||||
describe("scripts/test-group-report grouping", () => {
|
||||
it("groups repo files by stable product area", () => {
|
||||
@@ -201,3 +204,12 @@ describe("scripts/test-group-report arg parsing", () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("scripts/test-group-report artifact paths", () => {
|
||||
it("keeps raw Vitest reports scoped to the output file stem", () => {
|
||||
expect(resolveReportArtifactDirs(".artifacts/test-perf/baseline-before.json")).toEqual({
|
||||
reportDir: path.join(".artifacts", "test-perf", "baseline-before", "vitest-json"),
|
||||
logDir: path.join(".artifacts", "test-perf", "baseline-before", "logs"),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user