-
Notifications
You must be signed in to change notification settings - Fork 677
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
Add vscode implemention of the 'RunTestsInContext' and `DebugTestsInContext' commands #3772
Changes from all commits
410f4d2
07f6ba0
7040701
e7531e1
e312610
5c1ecb3
c77ecad
6efa0c4
c1a022b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -903,13 +903,35 @@ | |
"command": "razor.reportIssue", | ||
"title": "Report a Razor issue", | ||
"category": "Razor" | ||
}, | ||
{ | ||
"command": "dotnet.test.runTestsInContext", | ||
"title": "Run Tests in Context", | ||
"category": ".NET" | ||
}, | ||
{ | ||
"command": "dotnet.test.debugTestsInContext", | ||
"title": "Debug Tests in Context", | ||
"category": ".NET" | ||
} | ||
], | ||
"keybindings": [ | ||
{ | ||
"command": "o.showOutput", | ||
"key": "Ctrl+Shift+F9", | ||
"mac": "Cmd+Shift+F9" | ||
}, | ||
{ | ||
"command": "dotnet.test.runTestsInContext", | ||
"key": "ctrl+r t", | ||
"mac": "cmd+r t", | ||
"when": "editorLangId == csharp && editorTextFocus" | ||
}, | ||
{ | ||
"command": "dotnet.test.debugTestsInContext", | ||
"key": "ctrl+r ctrl+t", | ||
"mac": "cmd+r cmd+t", | ||
"when": "editorLangId == csharp && editorTextFocus" | ||
} | ||
], | ||
"snippets": [ | ||
|
@@ -3249,7 +3271,29 @@ | |
"command": "razor.reportIssue", | ||
"when": "resourceLangId == aspnetcorerazor" | ||
} | ||
], | ||
"editor/context": [ | ||
{ | ||
"command": "dotnet.test.runTestsInContext", | ||
"when": "editorLangId == csharp", | ||
"group": "2_dotnet@1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vscode groups are documented here: https://code.visualstudio.com/api/references/contribution-points#Sorting-of-groups
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dig it |
||
}, | ||
{ | ||
"command": "dotnet.test.debugTestsInContext", | ||
"when": "editorLangId == csharp", | ||
"group": "2_dotnet@2" | ||
} | ||
], | ||
"commandPalette": [ | ||
{ | ||
"command": "dotnet.test.runTestsInContext", | ||
"when": "editorLangId == csharp" | ||
}, | ||
{ | ||
"command": "dotnet.test.debugTestsInContext", | ||
"when": "editorLangId == csharp" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually know what the keyboard shortcuts for run/debug tests in VS for Mac are, so I've just done the equivalent of the Windows ones. If there's a better one to use, I'm all ears.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those work for me