Run xUnit tests from TFS2010

I am trying to figure out how to run xUnit tests from TFS 2010.

I found several articles on how to achieve this using the old version ( http://jonnekats.wordpress.com/2009/05/07/integrate-xunit-tests-into-your-daily-team-build/ , http: //weblogs.asp.net/mehfuzh/archive/2009/08/25/configuring-team-build-using-xunit.aspx ). These approaches no longer work with TFS 2010 because assemblies are no longer MSBuild files, but are workflows with various tasks.

What I would like to achieve is similar to what I have on my dev machine: - build everything - run the .xunit project file - check the results

All I can see on the Internet are custom build steps, which I cannot / will not use, because I will have to configure them for each individual unit test assembly, and they will probably be completely confused in TFS.

Any input would be appreciated.

+3
source share
2 answers

Why don't you use "InvokeProcess" in the TFS Build workflow and call the xUnit command line interface with the necessary xUnit project files as parameters?

You can write command line output by setting InvokeProcess-> stdout to write the build message.

+1
source
0

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


All Articles