在通过 cmd 合并 JSON 报告时,report.json 中出现错误(已转换)
error: unknown option: --reportDir
使用下面的命令
run mochawesome-merge --reportDir cypress\reports\mochawesome-report > cypress\reports\mocha\report.json
使用:操作系统:Windows
"devDependencies": {
"cypress": "^4.2.0",
"cypress-multi-reporters": "^1.2.4",
"mocha": "^7.1.1",
"mochawesome": "^5.0.0",
"mochawesome-merge": "^3.0.0",
"mochawesome-report-generator": "^4.1.0"
},
"reporter": "mochawesome",
"reporterOptions":{
"reportDir": "cypress/reports/mochawesome-report",
"reportFilename": "CustomeMocaReport",
"quiet": true,
"overwrite": false,
"html": false,
"json": true
},