I created a MSTest2 project with Visual Studio 2017, which targets .NET 4.5.1 When I run testcases locally everything works, but when I commit them in my git repository (hosted by TFS servers), TFS will not publish the test results.
I attach part of the unittest logfile (with an error):
2018-02-08T12:12:18.4706988Z Attachments:
2018-02-08T12:12:18.4706988Z <SOME PATH>/<FILENAME>.coverage
2018-02-08T12:12:18.4706988Z
2018-02-08T12:12:18.4706988Z Total tests: 35. Passed: 35. Failed: 0. Skipped: 0.
2018-02-08T12:12:18.4706988Z Test Run Successful.
2018-02-08T12:12:18.4706988Z Test execution time: 9.6025 Seconds
2018-02-08T12:12:18.7988091Z ##[warning]Failed to publish test results: The given path's format is not supported.
I am using VS2017 and the .csproj file contains the following references
<Project ToolsVersion="15.0">
<PropertyGroup>
<TargetFramework>net451</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="1.1.14" />
<PackageReference Include="MSTest.TestFramework" Version="1.1.14" />
</ItemGroup>
</Project>
Is there anything I can do to make it work on TFS build on servers? I read MSTest2 does not work well together with TFS. Is there any workaround or any other technology?
Thanks in advance.