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

Generate .runsettings file to be able to run and debug tests on vscode in codespace with prebuild #61684

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

safern
Copy link
Member

@safern safern commented Nov 16, 2021

Generate .runsettings file for VSCode as part of libs.pretest. Unfortunately we can't use the .runsettings file that we generate for Visual Studio as the paths that we use are specific for every test project containing configuration settings and for VSCode we need to point OmniSharp to the .runsettings file via a global setting that applies to all projects. However I'm not concerned about this as much as in VS we have more complex settings that are specific to each test project.

After adding this, people can open a test file and just click on "Debug Test" on intellicode and then debug it by just setting a breakpoint when in a codespace.

image

In order to support this locally we need a few more tweaks, I will put up a separate PR for that.

@ghost
Copy link

ghost commented Nov 16, 2021

Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

Generate .runsettings file for VSCode as part of libs.pretest. Unfortunately we can't use the .runsettings file that we generate for Visual Studio as the paths that we use are specific for every test project containing configuration settings and for VSCode we need to point OmniSharp to the .runsettings file via a global setting that applies to all projects. However I'm not concerned about this as much as in VS we have more complex settings that are specific to each test project.

After adding this, people can open a test file and just click on "Debug Test" on intellicode and then debug it by just setting a breakpoint when in a codespace.

image

In order to support this locally we need a few more tweaks, I will put up a separate PR for that.

Author: safern
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

eng/testing/runsettings.targets Show resolved Hide resolved
@ericstj
Copy link
Member

ericstj commented Nov 16, 2021

Is there anything we can do to keep this working? Will PR validation / CI cover this?

@safern
Copy link
Member Author

safern commented Nov 16, 2021

Is there anything we can do to keep this working? Will PR validation / CI cover this?

At the moment it will only validate that the target works, but it won't validate the .runsettings file is well formed (same for the VS generated .runsettings file), I guess we could cover this as part of the plans of protecting VS/innerloop experience? #36139

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants