MCPcopy Index your code
hub / github.com/devcontainers/cli / execTest

Function execTest

src/spec-node/featuresCLI/testCommandImpl.ts:596–604  ·  view source on GitHub ↗
(testFileName: string, workspaceFolder: string, cliHost: CLIHost, injectedEnv: { [varName: string]: string | boolean } = {})

Source from the content-addressed store, hash-verified

594}
595
596async function execTest(testFileName: string, workspaceFolder: string, cliHost: CLIHost, injectedEnv: { [varName: string]: string | boolean } = {}) {
597 // Ensure all the tests scripts in the workspace folder are executable
598 // Update permissions on the copied files to make them readable/writable/executable by everyone
599 await cliHost.exec({ cmd: 'chmod', args: ['-R', '777', workspaceFolder], output: nullLog });
600
601 const cmd = `./${testFileName}`;
602 const args: string[] = [];
603 return await exec(cmd, args, workspaceFolder, injectedEnv);
604}
605
606async function exec(cmd: string, args: string[], workspaceFolder: string, injectedEnv: { [name: string]: string | boolean } = {}) {
607 const injectedEnvArray = Object.keys(injectedEnv).length > 0

Callers 3

runDuplicateTestFunction · 0.85
doRunAutoTestFunction · 0.85
doScenarioFunction · 0.85

Calls 2

execFunction · 0.70
execMethod · 0.65

Tested by

no test coverage detected