vstest

How to run NUnit tests in Visual Studio 2017?

空扰寡人 提交于 2019-11-27 06:38:47
I've just installed VS 2017. I have a project using NUnit for the test cases. Ctrl + R - T no longer runs the tests, and the Test Explorer no longer finds any test cases marked with the TestCase attribute. Is there a way to get NUnit running yet, or an update I could find? I re-installed NUnit from the Nuget Package Manager to the latest version with no improvement. 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.

How to run NUnit tests in Visual Studio 2017?

北战南征 提交于 2019-11-26 12:04:18
问题 I\'ve just installed VS 2017. I have a project using NUnit for the test cases. Ctrl + R - T no longer runs the tests, and the Test Explorer no longer finds any test cases marked with the TestCase attribute. Is there a way to get NUnit running yet, or an update I could find? I re-installed NUnit from the Nuget Package Manager to the latest version with no improvement. 回答1: Add the NUnit test adapter NuGet package to your test projects 2.* (https://www.nuget.org/packages/NUnitTestAdapter/) 3.*

Specifying results filename for vstest.console.exe

二次信任 提交于 2019-11-26 09:31:39
问题 May be a silly question, but does anybody know how to specify the output filename of a VSTEST.Console.exe run? My command line is as follows: vstest.console.exe [assembly] /logger:trx At the end of the run, the following comes up in the console: ResultsFile: somepath\\TestResults\\{username}_{workstation} {timestamp}.trx I tried using the .runsettings file to specify the output location, but that only seems to control the output directory, but not the output file. Have not found anything else