How do I configure Visual Studio Online to run a custom unit test framework?

I am trying to get the Visual Studio Online Build Service to run nSpec tests. I downloaded the nSpec test adapter (which works fine locally), unzipped the DLLs, and loaded them into a separate TFS repository. I set up a hosted build controller and set a link to this repo.

This should be enough as far as I know, but my build just doesn't find any unit tests. If I try to edit the assembly definition -> Click Process, it loads the custom assemblies as it looks, but just writes this message to the console:

No assemblies were found in the custom build path. The assemblies may not exist or you may not have read permission. Contact your Team Foundation administrator for more information.

I've tried the same procedure with mSpec too, but the same happens here too. nUnit seems to work, but if I'm not entirely wrong, it might actually be installed on the hosted build server.

+3


source to share


1 answer


Unfortunately, this requires the nSpec plugin to be installed on the build server and Hosted Build TFS servers, and you can only use plugins. I believe the servers currently support MSTest, nUnit and xUnit.



To get this working, you will need to create your own build server. You can install the build server on Azure and install the required tools. Then you can run your own build config.

0


source