use*_*295 3 ruby configuration cucumber allure
我需要配置以下参数:
environment, trend, history, executors, retries,
Run Code Online (Sandbox Code Playgroud)
我需要这些黄瓜的参数与红宝石一起使用.我在很多地方搜索过,但我找不到多少.如果你能提供这些参数,我将不胜感激.
Dmi*_*aev 10
Allure allure-report/history
在报告生成期间将历史信息存储到文件夹.因此,您需要allure-results
在生成报告之前将之前启动时的此类文件夹复制到您的文件夹中.
历史特征由Allure CI插件开箱即用
要添加有关测试执行程序的信息,请executor.json
在以下位置创建文件allure-results
:
{
"name": "Jenkins",
"type": "jenkins",
"url": "http://example.org",
"buildOrder": 13,
"buildName": "allure-report_deploy#13",
"buildUrl": "http://example.org/build#13",
"reportUrl": "http://example.org/build#13/AllureReport",
"reportName": "Demo allure report"
}
Run Code Online (Sandbox Code Playgroud)
在报告中,此类信息将显示如下:
Allure CI插件将为您添加执行者信息
您还可以在报告中添加自定义问题类别.创建文件categories.json
并将其放入结果文件夹:
[
{
"name": "Ignored tests",
"messageRegex": ".*ignored.*",
"matchedStatuses": [
"skipped"
]
},
{
"name": "Infrastructure problems",
"messageRegex": ".*RuntimeException.*",
"matchedStatuses": [
"broken"
]
},
{
"name": "Outdated tests",
"messageRegex": ".*FileNotFound.*",
"matchedStatuses": [
"broken"
]
},
{
"name": "Regression",
"messageRegex": ".*\\sException:.*",
"matchedStatuses": [
"broken"
]
}
]
Run Code Online (Sandbox Code Playgroud)
默认情况下处理重试.对于Allure生成的每个测试historyId
(通常是md5(fullName + parameterValues)).如果报告包含的结果很少,同一historyId
倾向只显示最新,其他标记为重试,可从Retries
测试结果页面的部分获得.
例如,如果你运行你的测试3次(前2个被打破,最新通过,Allure会显示这样的测试通过)
归档时间: |
|
查看次数: |
1791 次 |
最近记录: |