【问题标题】:xunitmerge does creates duplicate tests when merged the py.test results of two different set of tests当合并两组不同测试的 py.test 结果时,xunitmerge 确实会创建重复测试
【发布时间】:2017-04-11 16:47:08
【问题描述】:

xunitmerge 在合并两组不同测试的 py.test 结果时创建重复测试。

我有两个测试文件夹并使用 py.test 分别运行它们,它创建了 results-1.xml &results-2.xml。之后我合并如下。

xunitmerge results-1.xml results-2.xml results.xml

它创建了 results.xml,当我使用 jenkins(发布 xunit 结果)发布结果时,我看到记录的测试显示它们是重复的,尽管 results-1.xml 和 results-2.xml 的测试是唯一的。

合并时如何避免重复测试结果?

【问题讨论】:

    标签: python unit-testing jenkins pytest xunit


    【解决方案1】:

    检查您没有在 Jenkins 扫描结果的路径中包含原始 results-1.xml 和 results-2.xml 文件。 如果您不确定,请尝试在合并后(以及在运行 xunit-report 操作之前)删除原始文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-20
      • 1970-01-01
      • 2019-02-19
      • 1970-01-01
      • 2013-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多