-
Notifications
You must be signed in to change notification settings - Fork 326
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
vstest.console.exe discovers no tests for a .NET Core class library project (VS 2017 RTM) #596
Comments
@ekumlin from #443 (comment), to run .Net Core tests project, please use vstest.console.exe from folder Edit: From VS 2017 update 5, All the requests to TPv1 forwards to TPv2. TP v1:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe TP v2: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe |
Thank you for the reply. Unfortunately, this does not work either.
I also tried with
|
@ekumlin For .Net Core project, /Frameowrk:FrameworkCore10 should be provided when running with Edit: From vstest 15.5 onwards, /Framework argument is not required for .NET Core targeted tests. |
@smadala Great, those two fixes together work. What is the difference between the |
|
@smadala Hi I just want to ask something this is a bit irrelevant to the current topic but I hope you can help me. Why is it that I can't add a new capability on a certain build agent (this is a private pipeline). I tried adding a new one but it doesn't displays on the list of capabilities. Is there any work around on this? |
Edited the link |
The link is still not available. |
Thanks works now! :) |
I found that the my older mstest csproj files didn't include various targets needed for VSTO to find unit tests. I created a new MSTest project and compare that with the existing csproj files and found a stack of references that needed to be copied to my older projects. E.g. |
I am trying to run vstest.console.exe for a Xamarin UI test project and I am getting message I am using Enterprise version of VS2017 15.4.4.
Can you please help @smadala |
@pMaske What is target framework of Xamarin.UITest.dll? Can you please create separate issue with all details in Issue template? |
Description
After creating a brand new .NET Core class library and unit test project, the IDE discovers my test, but not the console.
Steps to reproduce
A project created using the steps below is available from this link.
Class1
that can be called from an external module.vstest.console.exe "C:\...\bin\Debug\netcoreapp1.1\UnitTestProject1.dll" /UseVsixExtensions:true /logger:trx
/Framework:FrameworkCore10
per Code coverage on .NET Core #579; the result is the sameExpected behavior
The single test in the project,
TestMethod
, should execute and pass.Actual behavior
Environment
vstest.console.exe
15.0.26228.0The text was updated successfully, but these errors were encountered: