Skip to content

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.

test(test): fixture runners print TAP on every Node version [C7]

Corey Olson42f065cb566b
diff --git a/test/api-catalog.test.js b/test/api-catalog.test.js
index 27732afd..c8b4fe19 100644
--- a/test/api-catalog.test.js
+++ b/test/api-catalog.test.js
@@ -810,7 +810,7 @@ catalogCase('[A1] intake records a real outside pull request through the CLI', a
catalogCase('[A1,C7] test runs named test files and reports where they ran', async () => {
const box = await project();
const configFile = join(box.repo, 'pullboard.json');
- writeFileSync(configFile, JSON.stringify({ ...JSON.parse(readFileSync(configFile, 'utf8')), affectedTests: 'env -u NODE_TEST_CONTEXT node --test' }, null, 2)); // this file's own runner must not nest it
+ writeFileSync(configFile, JSON.stringify({ ...JSON.parse(readFileSync(configFile, 'utf8')), affectedTests: 'env -u NODE_TEST_CONTEXT node --test --test-reporter=tap' }, null, 2)); // this file's own runner must not nest it
mkdirSync(join(box.repo, 'test'));
writeFileSync(join(box.repo, 'test', 'catalog.test.js'), "import { test } from 'node:test';\ntest('catalog passes', () => {});\n");
await box.git(box.repo, 'add', '-A');
diff --git a/test/test-command.test.js b/test/test-command.test.js
index 57a361f0..5a89de24 100644
--- a/test/test-command.test.js
+++ b/test/test-command.test.js
@@ -40,7 +40,7 @@ test('pullboard test runs files on the runner pool with a per-file timeout [C7]'
}
// Main holds the focused runner, with its per-test timeout, and a test that hangs on main as well.
const config = JSON.parse(readFileSync(join(box.repo, 'pullboard.json'), 'utf8'));
- writeFileSync(join(box.repo, 'pullboard.json'), JSON.stringify({ ...config, affectedTests: 'node --test --test-timeout=3000' }, null, 2));
+ writeFileSync(join(box.repo, 'pullboard.json'), JSON.stringify({ ...config, affectedTests: 'node --test --test-reporter=tap --test-timeout=3000' }, null, 2));
mkdirSync(join(box.repo, 'test'));
for (const [name, text] of [['ok', PASSES], ['hang', HANGS], ['changed', PASSES]]) writeFileSync(join(box.repo, 'test', `${name}.test.js`), text);
box.git(box.repo, 'add', '-A');
@@ -75,7 +75,7 @@ test('pullboard test runs files on the runner pool with a per-file timeout [C7]'
test('pullboard test names why it ran on this machine, and every installed hook points at it [C7]', { timeout: 120_000 }, () => { // budget: hang ceiling for real init, join and one local run; not a speed target.
const box = e2e.project('true');
const config = JSON.parse(readFileSync(join(box.repo, 'pullboard.json'), 'utf8'));
- writeFileSync(join(box.repo, 'pullboard.json'), JSON.stringify({ ...config, affectedTests: 'env -u NODE_TEST_CONTEXT node --test' }, null, 2));
+ writeFileSync(join(box.repo, 'pullboard.json'), JSON.stringify({ ...config, affectedTests: 'env -u NODE_TEST_CONTEXT node --test --test-reporter=tap' }, null, 2));
mkdirSync(join(box.repo, 'test'));
writeFileSync(join(box.repo, 'test', 'ok.test.js'), PASSES);
box.git(box.repo, 'add', '-A');