-
Notifications
You must be signed in to change notification settings - Fork 331
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
Support test target for desktop msbuild #326
Comments
The testplatform targets and task are part of @Faizan2304 @harshjain2 thoughts? |
We should not bifurcate the project format between MSBuild and CLI. We had talked about making |
Until this is done, some projects cannot successfully run tests this way. |
I don't think |
Also I'd consider calling the target |
Is there a workaround for this? I have a multi-targeted test library that can only be built with desktop msbuild. I want to run tests! |
@onovotny Check this one out: You should be able to use these in your project. |
(the .props file might not be needed) |
Thanks, will check it out. Do you use anything for Code Coverage? I was using opencover but that seems broken lately and def doesn't support ppdb's or embedded ppdb's yet. |
@tmat your targets had something that might actually work for me -- after running the build normally with msbuild /t:build, I tried using |
Looks similar to issue #1155 I raised. Is there any update when "msbuild /t:VSTest" will be able to test both dncore and regular desktop app ? Thanks! |
I have removed the question tag. We will use this item as an input when we take up planning for Q2 of next year. |
Bump. Using |
I should add that as-of MSBuild 15.6. we can now have SDK's distributed via NuGet, so it should be a lot easier to support adding this as a test sdk out-of-band for both msbuild and dotnet. |
Anyone planning to fix this? Building via dotnet msbuild CLI and MSBuild.exe is generally inconsistent. |
Bump? |
@onovotny We haven't decided when to pick this yet. If you would like to contribute, Let me know I'm happy to help you. |
Has this been picked up yet? Just ran into this today as I was setting up our new build system. |
is there at least a workaround for this? e.g. can I somehow tell msbuild.exe to import the targets explicitly? |
Y'all should probably close this issue if the future milestone gets removed without a replacement. As much as i'd like to have the feature i'd rather take a set answer on whether its something y'all want to take on. |
@novacole, this is what you're looking at with dotnet/msbuild#9193, right? |
Yes, that's correct! @rainersigwald |
This is a new feature and won't be implemented, we are focusing on adding new features to Testing.Platform instead. https://aka.ms/testingplatform |
Description
User should be able to run tests specifying the test target with desktop msbuild. For example
This target should first build the app and then run tests for all the outputs (similar to how
dotnet test
behaves today).To get this target, user may need to add a package reference to
Microsoft.NET.Test.Sdk
. This package will include the target and the related task.Related customer ask: dotnet/sdk#546
The text was updated successfully, but these errors were encountered: