我正在尝试整合柏树重新销售与报告门户和摩拳擦掌。目标是得到这两份报告。我试过这个
cypress.json
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"reporterEnabled": "mochawesome, @reportportal/agent-js-cypress",
"mochawesomeReporterOptions": {
"reportDir": "cypress/reports/mocha",
"quite": true,
"overwrite": false,
"html": false,
"json": true
},
"reportPortalReporterOptions": {
"endpoint": "abc",
"token": "123",
"launch": "launcher",
"project": "project-name",
"autoMerge": true,
"description": "QA"
}
}它不起作用。是否有另一种方法将两个报告工具集成在柏树中?
发布于 2022-02-14 11:21:40
目前在我们的项目中我们正在使用下面的
config.json
{
"reporterEnabled": "mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "/results/junit-custom-[hash].xml"
},
"reportportalAgentJsCypressReporterOptions": {
"endpoint": "http://<remote_IP>:8080/api/v1",
"token": "c6a4015e-61fa-4506-b1de-cfc24e93b2ba",
"launch": "apps_dr",
"project": "my_test_app",
"description": "Sample",
"autoMerge": false,
"isLaunchMergeRequired": true,
"attributes": [
{
"key": "domain",
"value": "Apps"
},
{
"key": "name",
"value": "my test app"
},
{
"key": "type",
"value": "UI"
}
]
}
}在……里面
cypress.json
添加了以下参数:
"reporter": "@reportportal/agent-js-cypress",而且,这对我们很有帮助。
发布于 2022-05-10 15:44:49
在使用Cypress/Mocha和Report门户时,您需要注意两个怪癖:
。
https://stackoverflow.com/questions/71076607
复制相似问题