-
Notifications
You must be signed in to change notification settings - Fork 322
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
Running tests in a csproj with multiple TargetFrameworks #624
Comments
This is a very enoying bug. |
Along with this, I'd also like some support for having the I know I can have the
So if my multi-targeted library has some slight platform implementation differences in all of From my perspective, this feels like the kind of use case that shouldn't require me to make a bunch of different .csproj files... ideally, it seems, I'd just have one Test .csproj file that specifies the above 8 ( I'm perfectly content with manually writing .csproj files for this kind of thing. If you consider this to be a distinct issue that's separate enough from the other stuff discussed above, let me know and I'll copy it into a new issue. (edit: "I should be able to tell vstest" --> "I should be able to tell the framework", since as I understand it, vstest isn't at all responsible for building the projects themselves) |
Please create a separate issue for this. |
@Faizan2304 done, #1013 |
Thank you @airbreather. |
Created this issue in developers community, Hence closing the issue. Below is the link |
I'm leaving a link to that issue in the NUnit test adapter repository readme. When do you think we might see this feature? |
All, follow that link and use the vote functionality on the site for the issue so they know it has significance. |
It's been a year, any update to this? |
Is anything happening with this? The assumption it works with the first framework stated, might not be entirely true either. I do experience that it sometimes picks the 2nd one. This issue really need to be fixed. |
VS2019 16.2 Preview 1 adds something that sounds a lot like this. Testing it out on something basic, it seems to work for me. Edit: not sure what's up with this... I definitely didn't do it on purpose, whatever it was: |
Right now dotnet test and visual studio both support this scenario. dotnet test however lacks the conciseness of the test explorer ui we now have in Visual Studio 2019. Should work on the console logging for multitarget testing be moved to another issue? If so i'd consider this issue to be done. Any thoughts? |
As of Visual Studio 2019 Version 16.2 the test explorer can display and run multi-targeted tests. For more info on using the target framework groupby or column to search or filter tests see our docs. This issue can be closed. |
Inside VS2017 I want to be able to discover and run tests from a csproj that has multiple TargetFrameworks. I believe that right now vstest only takes tests from the first framework in the list and ignores the rest.
I want the UI to discover tests for all frameworks and then let me choose whether to run tests from all frameworks (e.g. net45 and netcoreapp1.0), or to choose one framework (e.g. net45) and run tests only from it.
This feature is critical for anyone who writes a library that targets multiple platforms and wants to migrate to the new csproj system. Without it then the test integration in VS2017 isn't useful.
The text was updated successfully, but these errors were encountered: