Atlassian Bamboo如何识别python pytest报告[关闭]

问题描述 投票:0回答:1

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

python pytest bamboo pytest-html
1个回答
5
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.