Skip to content

Add 'Run/Debug Pester tests' command and file tab menu #1698

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 6 commits into from
Jan 17, 2019
10 changes: 5 additions & 5 deletions src/features/PesterTests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*---------------------------------------------------------
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

Expand All @@ -17,13 +17,13 @@ export class PesterTestsFeature implements IFeature {
constructor(private sessionManager: SessionManager) {
this.command = vscode.commands.registerCommand(
"PowerShell.RunPesterTestsFromFile",
(uriString, runInDebugger, describeBlockName?) => {
this.launchTests(vscode.window.activeTextEditor.document.uri, false, describeBlockName);
() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I was just going to suggest this but see you've already done it. :-)

this.launchTests(vscode.window.activeTextEditor.document.uri, false);
});
this.command = vscode.commands.registerCommand(
"PowerShell.DebugPesterTestsFromFile",
(uriString, runInDebugger, describeBlockName?) => {
this.launchTests(vscode.window.activeTextEditor.document.uri, true, describeBlockName);
() => {
this.launchTests(vscode.window.activeTextEditor.document.uri, true);
});
// This command is provided for usage by PowerShellEditorServices (PSES) only
this.command = vscode.commands.registerCommand(
Expand Down