MCPcopy Create free account
hub / github.com/continuedev/continue / runTest

Function runTest

extensions/cli/smoke-test.mjs:21–32  ·  view source on GitHub ↗
(name, testFn)

Source from the content-addressed store, hash-verified

19let testsFailed = 0;
20
21function runTest(name, testFn) {
22 process.stdout.write(`Testing ${name}... `);
23 try {
24 testFn();
25 console.log(`${colors.green}✓${colors.reset}`);
26 testsPassed++;
27 } catch (error) {
28 console.log(`${colors.red}✗${colors.reset}`);
29 console.error(` Error: ${error.message}`);
30 testsFailed++;
31 }
32}
33
34function execCommand(command, options = {}) {
35 return execSync(command, {

Callers 1

smoke-test.mjsFile · 0.70

Calls 2

errorMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected