Skip to content

Commit

Permalink
Merge pull request #27 from joselitofilho/new/v0.0.13
Browse files Browse the repository at this point in the history
fix: it fixes running commands on Window. #2
  • Loading branch information
joselitofilho authored Mar 8, 2021
2 parents 66cd874 + 0a50455 commit 8a43821
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ginkgoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ export class GinkgoTest {
let testResults: TestResult[] = [];
if (this.executeCommandsOn === 'onTerminal') {
let activeTerminal = vscode.window.terminals.find(t => t.name === "gte-bash");
if (!activeTerminal) {
activeTerminal = vscode.window.createTerminal({ name: "gte-bash", cwd });
if (activeTerminal) {
activeTerminal.dispose();
}
activeTerminal = vscode.window.createTerminal({ name: "gte-bash", cwd });
if (activeTerminal) {
activeTerminal.show(true);
activeTerminal.sendText('', true);
activeTerminal.sendText(`cd ${cwd} && ${command}`, true);
activeTerminal.sendText(`${command}`, true);

const xml = await this.waitForReportFile(reportFile);
testResults = await this.parseTestResults(xml);
Expand Down

0 comments on commit 8a43821

Please sign in to comment.