Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTS "Visual Studio Test" task can't find tests of .Net Core dlls

My VSTS - "Visual Studio Test" task can't find any tests of the .NET Core assembly. But in VS 2017 and in the console, it works well.

VSTS Task's logs:

enter image description here

enter image description here

enter image description here

My run settings file:

enter image description here

like image 415
Fanny Avatar asked May 18 '18 10:05

Fanny


1 Answers

Refer to these additional settings of Visual Studio Test task:

  1. Path to vstest.console.exe: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform
  2. Other console options: /framework:".NETCoreApp,Version=v2.0"
like image 200
starian chen-MSFT Avatar answered Oct 20 '22 15:10

starian chen-MSFT