@devries-cameron20 / composio Mirror · read-only / commits / f6849890f
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

test: preserve stderr output log coverage

Brendan O'Leary committed Nov 13, 2026 at 18:50 UTC f6849890f130a8d3e8474f8294fadfa49b3863eb
1 file changed +18
test/agent-task.test.ts
+18
@@ -98,6 +98,15 @@ const fixture = () => {
98 },
99 ],
100 },
101 + stderr: {
102 + boundary: 'offline',
103 + commands: [
104 + {
105 + cwd: '.',
106 + argv: [process.execPath, '-e', 'console.error("saved error");process.exitCode=2'],
107 + },
108 + ],
109 + },
110 interrupt: {
111 boundary: 'offline',
112 commands: [
@@ -420,6 +429,15 @@ test('long output keeps its start and end in the capped log', () => {
429 assert.match(log, /final type error\n$/);
430 });
431
432 +test('command stderr is saved in the output log', () => {
433 + const f = fixture();
434 + assert.equal(f.init('case', 'stderr').status, 0);
435 + assert.equal(f.run('verify', 'case').status, 1);
436 + const receiptPath = path.join(f.root, f.state('case').receipt);
437 + const log = readFileSync(path.join(path.dirname(receiptPath), 'output.log'), 'utf8');
438 + assert.equal(log, 'saved error\n');
439 +});
440 +
441 test('a successful command that edits its verification subject cannot establish fresh proof', () => {
442 const f = fixture();
443 assert.equal(f.init('case', 'mutating').status, 0);