【问题标题】:How does Atlassian Bamboo recognise python pytest reports [closed]Atlassian Bamboo如何识别python pytest报告[关闭]
【发布时间】:2018-03-27 09:38:32
【问题描述】:

我有一些使用 pytest 用 Python3 编写的集成测试。我正在使用 pytest-html 从中生成 html 报告。如何让 Bamboo 识别/显示此报告。

【问题讨论】:

    标签: python pytest bamboo pytest-html


    【解决方案1】:

    如果您仅出于持续集成的目的而在竹子中生成 html 报告,则可以通过以下方式将测试结果导出到 xml:

    pytest yourpath --junitxml=..\pytest.xml
    

    并在 pytest.xml 上从竹子运行 JUnit 解析器插件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-28
      • 1970-01-01
      • 1970-01-01
      • 2016-07-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多