Skip to content

Update test timeouts and .gitignore #3606

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

Merged
merged 2 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
22 changes: 8 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
bin/
examples/Release/
examples/Tests/foo*.txt
out/
node_modules/
.vscode-test/
logs/
modules/*
sessions/*
!modules/README.md
vscode-powershell.zip
vscps-preview.zip
modules/
node_modules/
out/
sessions/
test/.vscode/

test-results.xml
*.vsix
npm-debug.log
.vscode-test/
*.DS_Store
test-results.xml
test/.vscode/settings.json
2 changes: 1 addition & 1 deletion test/features/ExternalApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ suite("ExternalApi feature - Other APIs", () => {
assert.notStrictEqual(versionDetails.version, null);

// Start up can take some time...so set the timeout to 30 seconds.
}).timeout(30000);
});
});
4 changes: 2 additions & 2 deletions test/features/ISECompatibility.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ suite("ISECompatibility feature", () => {
const currently = vscode.workspace.getConfiguration(iseSetting.path).get(iseSetting.name);
assert.notStrictEqual(currently, iseSetting.value);
}
}).timeout(10000);
});

test("It doesn't change theme when disabled if theme was manually changed after being enabled", async () => {
assert.strictEqual(vscode.workspace.getConfiguration("workbench").get("colorTheme"), "PowerShell ISE");
Expand All @@ -58,5 +58,5 @@ suite("ISECompatibility feature", () => {
assert.notStrictEqual(currently, iseSetting.value);
}
assert.strictEqual(vscode.workspace.getConfiguration("workbench").get("colorTheme"), "Monokai");
}).timeout(10000);
});
});
3 changes: 1 addition & 2 deletions test/features/RunCode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ suite("RunCode tests", () => {
// it to run, and then kill it for safety's sake.
assert(await vscode.commands.executeCommand("PowerShell.RunPesterTestsFromFile"));
assert(vscode.debug.activeDebugSession !== undefined);
await sleep(5000);
await vscode.debug.stopDebugging();
}).timeout(30000);
});
});
2 changes: 1 addition & 1 deletion test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function run(): Promise<void> {
ui: "tdd",
color: !process.env.TF_BUILD, // colored output from test results
reporter: "mocha-multi-reporters",
timeout: 5000,
timeout: 30000, // 30s because PowerShell startup is slow!
reporterOptions: {
// NOTE: The XML output by Mocha's xUnit reporter is actually in the
// JUnit style. I'm unsure how no one else has noticed this.
Expand Down