-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Show a message when building as part of dotnet-run #12581
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
Conversation
* Tweak ILaunchSettingsProvider to return a LaunchSettingsResult * Read LaunchSettingsResult during dotnet-run to show message
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.
My forces is on RunCommand.cs. There are some code lacking coverage. And it is better to have unit tests to cover these code.
| targetCommand.EnvironmentVariable("ASPNETCORE_URLS", launchSettings.ApplicationUrl); | ||
| } | ||
|
|
||
| foreach (var entry in launchSettings.EnvironmentVariables) |
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.
no test coverage for this code
| return 1; | ||
| if (!string.IsNullOrEmpty(launchSettings.ApplicationUrl)) | ||
| { | ||
| targetCommand.EnvironmentVariable("ASPNETCORE_URLS", launchSettings.ApplicationUrl); |
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.
no test coverage for this code
|
@wli3 I wrote a functional test for the scenarios you listed to make sure previously untested code worked after I basically moved the code around. While I understand it would be great to add unit test coverage for this type, this is not the PR to do it. I'll file an issue to add additional test coverage in this area. |
|
Filed #12609 as follow up. |
I don't like this approach. And you dismissed my block directly. Unless it is really hard. Tests should go with the PR. |
Based on https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1154478