Using XUnit with Visual Studio Online

I installed my assembly as shown below using the assembly definition. I use XUnit, and locally my tests are detected and run. I checked glob **\*spec*.dll and found that all of my test DLLs and build logs show that these DLLs are actually built.

enter image description here

However in the build log I get

 Run VS Test Runner No test found. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again. 

He seems to be trying to use the MSTest test runner instead of the XUnit test runner. How can I say that the assembly for the Visual Studio online studio is used to launch and open the XUnit scanner?

+3
source share
1 answer

Now this may be deprecated, but this is how I install and work - downvote and let me know if it is wrong, and I will remove it. I got it on the blog / MSDN page, but I can no longer find it.

First you need to create a TFVC team project (it doesn't matter if you use it again).

In $/MyTFVC/BuildProcessTemplate/CustomActivities/

Checking the following files from xunit.net:

Files

Now in VS, click the BUILD button, Manage Build Controllers .... Select "Hosted Build Controller (Hosted)" and click "Properties ...".

Enter the path that you specified in the DLL in the "Version control path to custom assemblies" field:

enter image description here

You must be kind.

+3
source

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


All Articles