R4cOOn
R4cOOn

Reputation: 2575

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.

Upvotes: 3

Views: 1373

Answers (2)

Gutek
Gutek

Reputation: 655

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

Upvotes: 0

coder_bro
coder_bro

Reputation: 10773

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.

Upvotes: 1

Related Questions