如何获取像jenkins报告一样在本地运行所有场景的黄瓜html报告

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

我在黄瓜选项中使用了此代码(plugin = {“pretty”,“json:target / cucumber.json”,“html:target / CucumberTestReport.html”}) enter image description here 我想要一份像 Jenkins html 报告这样的报告

我想要通过在本地运行所有场景来获取 jenkins html 报告
enter image description here

selenium-webdriver jenkins cucumber-java
1个回答
0
投票

首先在你的jenkins上安装publish html然后使用它:

     publishHTML( target:[
                  allowMissing: false,
                  alwaysLinkToLastBuild: true,
                  keepAll: true,
                  reportDir: 'your dir',
                  reportFiles: '*.html',
                  reportName: 'HTMLReport', 
                  reportTitles: 'reportTitle']
                  )    
© www.soinside.com 2019 - 2024. All rights reserved.