我已经在柏树中配置了 Mochaawsome 报告。我的项目中有 2 个 .js 文件。每个文件有 2 个测试用例。我正在通过命令终端上的命令运行两个 .js 文件。以下是我正在使用的命令:
cypress run --reporter mochawesome \ --reporter-options reportDir=reporter-config.json,overwrite=false,henter code heretml=false,json=true
当我去检查 html 报告时,我的终端显示两个 js 文件的执行结果,然后它只显示第二个 js 文件的结果。
我的 HTML 报告在路径生成:cypress/reporter-config.json overwrite=false html=false json=true/mochawesome.html
我的第一个 js 文件
describe('First Test Suite', function() {
it('First Test Case', function() {
cy.log("-------1st Suite 1st Testcase-----");
})
})
我的第二个 js 文件
describe('My Second Test Suite', function() {
it('My Second Test Case', function() {
cy.log("-------2nd Suite 2nd Testcase-----");
})
it('My Third Test Case', function() {
cy.log("-------2nd Suite 3rd Testcase-----");
})
})