Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(test): pullboard test prints its TAP and the main comparison [C7]
Corey Olson684e9999c7d2
diff --git a/src/commands/test.js b/src/commands/test.jsindex ac17e187..1046992b 100644--- a/src/commands/test.js+++ b/src/commands/test.js@@ -7,17 +7,18 @@ import {} from '../cli.js';/** Run `pullboard test <files>` and return its exit code: 0 when every named file passes. */-export async function run(io, { first, second, rest }) {+export async function run(io, { first, second, rest, values }) {const ctx = context(io);const files = [first, second, ...rest].filter((file) => file !== undefined && file !== '');const result = await runTestFiles(ctx.info.root, ctx.config, files, { agent: resourceAgent(ctx) ?? `pid-${process.pid}`, onWait: gateWaitReporter(io) });io.result?.(result);- if (!io.result && result.output) io.say(result.output.trimEnd());+ if (!values.json && result.output) io.say(result.output.trimEnd());io.err(`pullboard test: ${result.green ? 'green' : 'red'} on ${result.runner} in ${result.seconds}s`);for (const entry of result.known) {io.err(entry.result === 'red'? `known main failure: ${entry.file} fails on main ${String(result.main).slice(0, 12)} too`: `new failure: ${entry.file} passes on main ${String(result.main).slice(0, 12)}`);}+ if (result.mainUnavailable) io.err(`main comparison unavailable: ${result.mainUnavailable}`);return result.green ? 0 : 1;}diff --git a/src/test-run.js b/src/test-run.jsindex aefce9ee..5c6b7f7c 100644--- a/src/test-run.js+++ b/src/test-run.js@@ -106,6 +106,7 @@ export async function runTestFiles(root, config, files, { agent, onWait } = {})const compared = await compareMainFailures(root, run.profile, onWait, run.output);result.main = compared.main;result.known = compared.files;+ if (compared.unavailable) result.mainUnavailable = compared.unavailable;}return result;}