MCPcopy Create free account
hub / github.com/deepclause/agentvm / runMultipleTests

Function runMultipleTests

test/data-integrity.test.js:152–171  ·  view source on GitHub ↗
(count = 5)

Source from the content-addressed store, hash-verified

150
151// Multiple test runs to catch intermittent issues
152async function runMultipleTests(count = 5) {
153 console.log(`\n=== Running ${count} data integrity tests ===\n`);
154
155 let passed = 0;
156 let failed = 0;
157
158 for (let i = 1; i <= count; i++) {
159 console.log(`\n--- Test run ${i}/${count} ---\n`);
160 try {
161 await runTest();
162 passed++;
163 } catch (err) {
164 console.error(`[FAIL] Test ${i} failed:`, err.message);
165 failed++;
166 }
167 }
168
169 console.log(`\n=== Results: ${passed}/${count} passed, ${failed}/${count} failed ===\n`);
170 process.exit(failed > 0 ? 1 : 0);
171}
172
173// Run single test or multiple based on args
174const count = parseInt(process.argv[2]) || 1;

Callers 1

Calls 1

runTestFunction · 0.85

Tested by

no test coverage detected