What else is needed to get Hosted Build Controller to run my NUnit tests

I cannot get Visual Studio Online Hosted Build Controller to run its NUnit tests, despite the instructions in " Add assemblies for custom actions and other unit test frameworks " to add the necessary NUnit executables and tell the assembly controller about them.

I tried all this first in a Git project and could not get it to work, despite the information in Visual Studio Online CI Nunit Tests not found during assembly .

My current efforts are being done in the TFVC project, so the fact that the host controller cannot get it from Git should not be a factor.

The project that I use is a simple class library, without code, but the code is automatically added by the project wizard. The testing project is similar: the wizard used to add a new test project, added the NUnit package and added a new test class that refers to the NUnit structure, and not to MS. In the IDE, the test runner correctly shows two unit tests: TestMethod1one that was added by the wizard and NUnit_TestMethod1one that was added by me in a new test class. When I run everything, both tests run:

Test Explorer image showing both tests are run

Everything seems beautiful and dandy. However, when I run the build on Visual Studio Online using the Hosted Build Controller, only the MS test runs:

Diagnostics output of VSO's hosted build controller wrt test execution

MS test UnitTest1 NUnit, IDE ( " " TestMethod1, TestExplorer ), " ".:

No tests found.  Diagnostics

" " ( Visual Studio , ) ​​ $/BJM Software TFVC/CustomBinaries. , "":

Source pull log wrt custom binaries

:

  • . " " , script ( ).
  • TfvcTemplate.12.xaml build script.
  • script **\*test*.dll;**\*test*.appx ( ).
  • - " " " ".

  • "" nunit.framework.dll. (.. NUnit ), . NuGet .

? , Hosted Build Controller Visual Studio Online NUnit?

+2
1

  • NuGet "NUnit Test adapter VS2012 VS2013" ,

"2 2 ".

.

$/BJM Software TFVC/CustomBinaries " " .

+1

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


All Articles