diff --git a/core/src/plugins/exec.ts b/core/src/plugins/exec.ts index 74acfa6112..46e38fe9bb 100644 --- a/core/src/plugins/exec.ts +++ b/core/src/plugins/exec.ts @@ -271,6 +271,12 @@ export async function testExecModule({ await copyArtifacts(log, test.config.spec.artifacts, module.buildPath, artifactsPath) + const outputLog = (result.stdout + result.stderr).trim() + if (outputLog) { + const prefix = `Finished running test ${chalk.white(test.name)}. Here is the output:` + log.verbose(renderMessageWithDivider(prefix, outputLog, false, chalk.gray)) + } + return { moduleName: module.name, command, @@ -279,7 +285,7 @@ export async function testExecModule({ success: result.exitCode === 0, startedAt, completedAt: new Date(), - log: result.stdout + result.stderr, + log: outputLog, } } @@ -313,6 +319,11 @@ export async function runExecTask(params: RunTaskParams): Promise