TFS Tests do not match framework settings

There is a /Framework: parameter that you can specify to VSTest. In your case, you should specify /Framework:.NETFramework,Version=v4.7.1 See more at https://msdn.microsoft.com/en-us/library/jj155796.aspx?f=255&mspperror=-2147217396 To add this parameter in a Azure DepOps yaml pipeline, use the otherConsoleOptions argument – task: VSTest@2 otherConsoleOptions: ‘/Framework:.NETFramework,Version=v4.7.1’

Specifying results filename for vstest.console.exe

EDIT: See @AnaFranco’s answer – apparently since VS2017 the file name can be configured like so: vstest.console.exe [assembly] /logger:trx;LogFileName=[filename].trx I’ll leave the old answer for posterity and pre-2017 versions. Nope, you’re not missing anything. The TRX logger doesn’t support any parameters (unlike the TFS publisher logger). The logger assembly is located in “C:\Program Files (x86)\Microsoft … Read more

How can I run NUnit tests in Visual Studio 2017?

Add the NUnit test adapter NuGet package to your test projects 2.* (https://www.nuget.org/packages/NUnitTestAdapter/) 3.* (https://www.nuget.org/packages/NUnit3TestAdapter/) Or install the Test Adapter Visual Studio extension. There is one for 2.* (https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnitTestAdapter) 3.* (https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter). I prefer the NuGet package, because it will be in sync with the NUnit version used by your project and will thus automatically match the … Read more