21 lines
857 B
JavaScript
21 lines
857 B
JavaScript
import assert from "node:assert/strict";
|
|
import { execFileSync } from "node:child_process";
|
|
import test from "node:test";
|
|
import path from "node:path";
|
|
|
|
const root = path.resolve(import.meta.dirname, "../../..");
|
|
|
|
test("execution control plane reports one queue pointer and capability throughput", () => {
|
|
const output = execFileSync(process.execPath, [
|
|
path.join(root, "tools/web/check-execution-control-plane.mjs"),
|
|
"--allow-unrunnable",
|
|
], { cwd: root, encoding: "utf8" });
|
|
const report = JSON.parse(output);
|
|
assert.equal(report.status, "PASS");
|
|
assert.equal(report.queue.currentTask, "WBV2-P0-002");
|
|
assert.equal(report.queue.parentNextTask, report.queue.currentTask);
|
|
assert.equal(report.efficiency.capabilityClusters, 3);
|
|
assert.ok(report.efficiency.averageGapsPerCapability >= 1);
|
|
assert.equal(report.issues.length, 0);
|
|
});
|