The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test: reformat coverage test assertions to satisfy line length limits
Steven Enamakel65ccd1ff7157
diff --git a/scripts/__tests__/nextest-coverage.test.mjs b/scripts/__tests__/nextest-coverage.test.mjsindex e3f1130169..cbaa4914ca 100644--- a/scripts/__tests__/nextest-coverage.test.mjs+++ b/scripts/__tests__/nextest-coverage.test.mjs@@ -105,7 +105,9 @@ test("ignored-only binaries remain inventoried without requiring nonexistent JUntest("standalone manifest config omits absent binaries while root metadata retains serialization", () => {const dir = fs.mkdtempSync(path.join(os.tmpdir(), "nextest-config-"));try {- fs.writeFileSync(path.join(dir, "cargo"), `#!/usr/bin/env node+ fs.writeFileSync(+ path.join(dir, "cargo"),+ `#!/usr/bin/env nodeconst fs = require('node:fs');const args = process.argv.slice(2);if (args[0] === 'metadata') {@@ -115,15 +117,42 @@ if (args[0] === 'metadata') {const report = JSON.parse(config.split('\\n').find(line => line.startsWith('path = ')).slice(7));fs.writeFileSync(report, '<testsuites><testsuite name="fixture" tests="1"/></testsuites>');}-`, { mode: 0o755 });- for (const targets of [[], ["agent_harness_e2e", "json_rpc_e2e", "mcp_registry_multi_server"]]) {- execFileSync("bash", [path.join(root, "scripts/ci/nextest-coverage.sh"), "config", "cargo", "llvm-cov", "nextest", "--manifest-path", "standalone/Cargo.toml"], {- cwd: root,- env: { ...process.env, PATH: `${dir}:${process.env.PATH}`, NEXTEST_REPORT_DIR: dir, MOCK_TARGETS: JSON.stringify(targets) },- stdio: "pipe",- });+`,+ { mode: 0o755 },+ );+ for (const targets of [+ [],+ ["agent_harness_e2e", "json_rpc_e2e", "mcp_registry_multi_server"],+ ]) {+ execFileSync(+ "bash",+ [+ path.join(root, "scripts/ci/nextest-coverage.sh"),+ "config",+ "cargo",+ "llvm-cov",+ "nextest",+ "--manifest-path",+ "standalone/Cargo.toml",+ ],+ {+ cwd: root,+ env: {+ ...process.env,+ PATH: `${dir}:${process.env.PATH}`,+ NEXTEST_REPORT_DIR: dir,+ MOCK_TARGETS: JSON.stringify(targets),+ },+ stdio: "pipe",+ },+ );const generated = fs.readFileSync(path.join(dir, "config.toml"), "utf8");- assert.equal(generated.includes("[[profile.ci.overrides]]"), targets.length > 0);+ assert.equal(+ generated.includes("[[profile.ci.overrides]]"),+ targets.length > 0,+ );}- } finally { fs.rmSync(dir, { recursive: true, force: true }); }+ } finally {+ fs.rmSync(dir, { recursive: true, force: true });+ }});diff --git a/scripts/__tests__/rust-coverage-status.test.mjs b/scripts/__tests__/rust-coverage-status.test.mjsindex ef24e2910a..e8f2112a63 100644--- a/scripts/__tests__/rust-coverage-status.test.mjs+++ b/scripts/__tests__/rust-coverage-status.test.mjs@@ -327,7 +327,13 @@ test("private coverage passes when all eight selected configurations report testtest("instrumented CLI inventory is cancellation-aware and reuses llvm-cov's environment", () => {const source = fs.readFileSync(runner, "utf8");- assert.match(source, /bash scripts\/ci-cancel-aware\.sh cargo llvm-cov show-env --sh/);+ assert.match(+ source,+ /bash scripts\/ci-cancel-aware\.sh cargo llvm-cov show-env --sh/,+ );assert.match(source, /eval "\$\{inventory_env\}"/);- assert.match(source, /bash scripts\/ci-cancel-aware\.sh cargo nextest list --message-format json/);+ assert.match(+ source,+ /bash scripts\/ci-cancel-aware\.sh cargo nextest list --message-format json/,+ );});