Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support parallel test execution #260

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix newlines in test output
Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com>
  • Loading branch information
Jannik2099 committed Oct 31, 2024
commit 75f56c5ca2efefbb7e792ec082291d883f83169c
6 changes: 5 additions & 1 deletion src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export async function testRunHandler(
(onrejected) => {
const execResult = onrejected as ExecResult;

run.appendOutput(execResult.stdout, undefined, test);
let stdout = execResult.stdout;
if (os.platform() != "win32") {
stdout = stdout.replace(/\n/g, "\r\n");
}
run.appendOutput(stdout, undefined, test);
if (execResult.error?.code == 125) {
vscode.window.showErrorMessage("Failed to build tests. Results will not be updated");
run.errored(test, new vscode.TestMessage(execResult.stderr));
Expand Down