Skip to content

Commit

Permalink
feat: separate stdout per spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
vCaisim committed Dec 13, 2022
1 parent 850f759 commit a9d01c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cypress-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { runSpecFile } from "./lib/cypress";
import { getGitInfo } from "./lib/git";
import { getPlatformInfo } from "./lib/platform";

const stdout = capture.stdout();
let stdout = capture.stdout();
setCypressVersion(cypressPckg.version);

export async function run() {
Expand Down Expand Up @@ -149,6 +149,9 @@ async function runTillDone({
break;
}

capture.restore();
stdout = capture.stdout();

console.log("Running spec file...", currentSpecFile);
const cypressResult = await runSpecFile({ spec: currentSpecFile.spec });

Expand Down

0 comments on commit a9d01c3

Please sign in to comment.