MCPcopy Index your code
hub / github.com/code-pushup/cli / executeRunnerConfig

Function executeRunnerConfig

packages/core/src/lib/implementation/runner.ts:31–50  ·  view source on GitHub ↗
(
  config: RunnerConfig,
  args: RunnerArgs,
)

Source from the content-addressed store, hash-verified

29};
30
31export async function executeRunnerConfig(
32 config: RunnerConfig,
33 args: RunnerArgs,
34): Promise<unknown> {
35 const { outputFile, outputTransform } = config;
36
37 await executeProcess({
38 command: config.command,
39 args: config.args,
40 env: { ...process.env, ...runnerArgsToEnv(args) },
41 });
42
43 // read process output from the file system and parse it
44 const outputs = await readJsonFile(outputFile);
45 // clean up plugin individual runner output directory
46 await removeDirectoryIfExists(path.dirname(outputFile));
47
48 // transform unknownAuditOutputs to auditOutputs
49 return outputTransform ? await outputTransform(outputs) : outputs;
50}
51
52export async function executeRunnerFunction(
53 runner: RunnerFunction,

Callers 2

executePluginRunnerFunction · 0.85

Calls 4

executeProcessFunction · 0.90
runnerArgsToEnvFunction · 0.90
readJsonFileFunction · 0.90
removeDirectoryIfExistsFunction · 0.90

Tested by

no test coverage detected