Allure 报告:未分组的测试列表

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

我需要在 Allure 报告中列出所有测试,而不按错误消息、套件、包等分组。像这样:

nice to see

尝试在 allure-results 文件夹中使用categories.json:

[ 
   { 
     "name": "List of all tests", 
     "mathedStatuses": ["broken", "failed", "skipped", "passed"] 
   } 
] 

但是 Allure 错误地对测试进行了分组:

Allure's grouping

环境:java11,gradle,testNg,Allure 2.20.1

提前致谢!

ps:chatGpt 根本没有帮助))

java gradle cucumber testng allure
1个回答
0
投票

也许是因为“mathedStatuses”中的拼写错误?你应该使用:

[ 
   { 
     "name": "List of all tests", 
     "matchedStatuses": ["broken", "failed", "skipped", "passed"] 
   } 
] 
© www.soinside.com 2019 - 2024. All rights reserved.