【问题标题】:make ccnet self test做ccnet自测
【发布时间】:2010-06-09 07:13:41
【问题描述】:

我想在 ccnet 中运行一个测试项目, 谁能帮忙?


我没有使用 NUnit。我在我的 web 项目中使用 [Test Class()] 属性,并想从 ccnet 运行这个项目

【问题讨论】:

  • 这个项目使用什么单元测试框架?

标签: cruisecontrol.net ccnet-config


【解决方案1】:

看来测试框架应该是MsTest

为了在构建服务器上运行 MsTest,您需要在 have to 安装 Visual Studio 或解决问题或 hack(替代 hack)。

那么你可以使用MsTest.exe

Here is the official documentation on running MSTest tests.

Similar question and more hacks or work-arounds

【讨论】:

    【解决方案2】:

    如果您使用的是 NUnit,您可能需要查看 the documentation

    【讨论】:

    • 嗨 Rob van,我没有使用 NUnit。我在我的网络项目中使用 [Test Class()] 属性,并想从 ccnet 运行这个项目
    • @sag:请将此信息添加到您的原始问题中。恐怕我不太熟悉测试 Web 项目以帮助您,但其他人可能会。
    【解决方案3】:

    我建议查看 CCNet 以运行 msbuild 任务 有许多示例可以从 MSBuild 任务运行 MSTest。

    这个看起来很有前途: http://harriyott.com/2005/07/running-mstest-from-msbuild.aspx?post=/2005/07/running-mstest-from-msbuild.blogpost

    -- 我自己正在使用 NUnit 和 xUnit。您是否可以考虑切换到 NUnit 进行测试? NUnit 与 CCNet 的结合得到了更广泛的采用,这使得搜索答案变得更加容易。

    【讨论】:

      猜你喜欢
      • 2011-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多