【问题标题】:Is Viewing JUnit results in TeamCity possible?是否可以在 TeamCity 中查看 JUnit 结果?
【发布时间】:2014-02-23 16:55:14
【问题描述】:

我正在设置一个项目,该项目使用 TeamCity 构建项目并运行单元测试。

第一个已成功完成,项目构建。但是我不知道如何设置 TeamCity 我的 build.xml,以便我可以查看每个单独测试的成功或失败。虽然我很确定我是从错误的角度攻击这个。

下面是我的 build.xml:

<project>
<property name="test" location="tests"/>
<target name="test">
  <junit printsummary="yes" fork="yes" haltonfailure="yes">
    <formatter type="plain"/>
      <batchtest fork="true">
        <fileset dir="${test}">
          <include name="**/*Test*.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>
</project>

【问题讨论】:

  • 好的,这比我想象的要大得多。我很快就会回来。

标签: java junit teamcity


【解决方案1】:

This post on stack overflow 回答了我的主要问题。所以我会关闭这个。

只需从 Eclipse 中生成 ANT 构建文件就可以了。

现在是报告...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-03
    • 1970-01-01
    • 1970-01-01
    • 2012-10-28
    • 2018-05-13
    相关资源
    最近更新 更多