在 Hudson 中配置 xUnit 测试输出

发布于 2024-08-30 15:11:36 字数 681 浏览 7 评论 0原文

我在 Hudson 有一个简单的 PoC 项目。 PoC 具有通过 UnitTest++ 编写的单元测试,并将结果输出为 XML,供 xUnit 使用以转换为 jUnit 格式。

以下是重要的相关内容,

  • 我将我的项目配置为使用 MSBuild 来构建 2008 解决方案。
  • 该项目包含要构建的 dll 和作为构建后步骤运行的单元测试。
  • 我将 Hudson 中的工作区设置为 c:\develop\money (Money 是项目的名称),在 Hudson 控制台中我可以看到工作区文件夹、解决方案文件和输出文件夹(/bin、/doc 等) )。
  • 测试控制台应用程序将其文件“money_unit_tests.xml”输出到预先创建的文件夹“reports”(创建c:\develop\money\reports)。

然而,工作空间似乎并没有固定下来。如果我提交工作区目录,它会显示文件夹,但如果我重新加载页面,则会显示“目录中没有文件”消息。

为什么 Hudson 不像我配置的那样使用 C:\Develop...?

我可以做什么来更改它?

如果我无法更改它,该怎么办?我可以做些什么来减轻这些变化?(我并不想将 xml 的输出硬编码为 C:.hudson...)

I have a simple PoC project in Hudson. The PoC has unit tests written via UnitTest++ and outputs the results as XML for consumption by xUnit to munge into jUnit format.

Here are the salient relevant

  • I have my project configured to use MSBuild to build the 2008 solution.
  • The project contains both the dll it is to build and the unit tests which are run as a post-build step.
  • I set my workspace in Hudson is set to c:\develop\money (Money is the name of the project) and in the Hudson console I can see the workspace folders, the solution file and output folders (/bin, /doc, etc).
  • The test console app outputs its file 'money_unit_tests.xml' to the folder 'reports' (making c:\develop\money\reports) which is precreated.

However it seems that the workspace isn't sticking. If I submit the workspace directory it shows me the folders but if I then reload the page then it shows the 'No files in directory' message.

Why does Hudson not use C:\Develop... like I configured it?

What can I do change it?

If I can't change it, what can I do to mitigate these changes? (I don't exactly want to hardcode the output for the xml to C:.hudson...)

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

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

发布评论

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

评论(1

嘿哥们儿 2024-09-06 15:11:36

配置中似乎有一个高级选项,其中隐藏了几个附加选项。下面是自定义工作区,这让我困惑于工作区文件夹的用途(仍然是空白的)。

It appears in Configure there is an Advanced option which hides several additional options. Under there is custom workspace, which puzzles me as to what the workspace folder is for (which is still blank).

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