简体   繁体   中英

Run xUnit tests from TFS2010

I'm trying to work out how to run xUnit tests from TFS 2010.

I found some articles on how to achieve that with the older 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 don't work anymore with TFS 2010 because builds are no longer MSBuild files but instead are Workflows with different tasks.

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

All that I can see on the web are custom build steps which I can't/won't use because I'll have to configure them for each single unit test assembly and they'll probably get completely messed up in TFS.

Any input would be appreciated.

Why dont use "InvokeProcess" in TFS Build workflow and invoke xUnit command line interface with the necessary xUnit project files as parameters?

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

Take a look at the xUnit work item Support VSTS Test Runner on codeplex . You can find there a VS2010 extension in Beta version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM