How to run a NUnit test in Visual Studio Team Services

When I try to run a NUnit test in a VSTS task, I get the following error:

Warning: The path 'C:\a\1\s\INCASOL.IP\packages' specified in the 'TestAdapterPath' does not contain any test adapters, provide a valid path and try again.

I have these tasks in VSTS:

enter image description here

The Run Unit Test task is configured as follows: enter image description here

Note. I set the path to custom test adapters.

I think that the dlls for NUnit are correctly copied to the package folder, because in the Nuget Repair task I see the following:

Added package 'NUnit.2.6.4' to folder 'C:\a\1\s\INCASOL.IP\packages'

Notes: NUnit version is 2.6.4, and I use Hosted Agent

+4
source share
1 answer

, . NUnit Test Adapter, . ,

Install-Package NUnitTestAdapter

, .

+9

Source: https://habr.com/ru/post/1658373/


All Articles