从 TFS2010 运行 xUnit 测试

发布于 2024-09-16 01:20:01 字数 729 浏览 4 评论 0原文

我正在尝试弄清楚如何从 TFS 2010 运行 xUnit 测试。

我找到了一些关于如何使用旧版本实现这一目标的文章 (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)。 这些方法不再适用于 TFS 2010,因为构建不再是 MSBuild 文件,而是具有不同任务的工作流。

我想要实现的目标与我在开发机器上获得的目标类似: - 建造一切 - 运行.xunit项目文件 - 检查结果

我在网上看到的都是自定义构建步骤,我不能/不会使用这些步骤,因为我必须为每个单元测试程序集配置它们,并且它们可能会完全搞乱TFS。

任何意见将不胜感激。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

霊感 2024-09-23 01:20:01

为什么不在 TFS Build 工作流程中使用“InvokeProcess”并使用必要的 xUnit 项目文件作为参数调用 xUnit 命令行界面?

您可以通过设置 InvokeProcess->stdout 来捕获命令行的输出以写入构建消息。

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.

闻呓 2024-09-23 01:20:01

查看 xUnit 工作项支持 codeplex 上的 VSTS 测试运行程序。您可以在 Beta 版本中找到 VS2010 扩展。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文