Atlassian Bamboo 如何识别 python pytest 报告
How does Atlassian Bamboo recognise python pytest reports
我使用 pytest 在 Python3 中编写了一些集成测试。我正在使用 pytest-html 从中生成一个 html 报告。我如何制作 Bamboo recognize/show 这份报告。
如果您仅出于持续集成的目的在 bamboo 中生成 html 报告,则可以通过以下方式将测试结果导出到 xml:
pytest yourpath --junitxml=..\pytest.xml
和运行 来自 bamboo 的 JUnit 解析器插件 pytest.xml
。
我使用 pytest 在 Python3 中编写了一些集成测试。我正在使用 pytest-html 从中生成一个 html 报告。我如何制作 Bamboo recognize/show 这份报告。
如果您仅出于持续集成的目的在 bamboo 中生成 html 报告,则可以通过以下方式将测试结果导出到 xml:
pytest yourpath --junitxml=..\pytest.xml
和运行 来自 bamboo 的 JUnit 解析器插件 pytest.xml
。