Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有没有办法将cypress测试步骤执行信息添加到allure报告中?_Cypress_Allure - Fatal编程技术网

有没有办法将cypress测试步骤执行信息添加到allure报告中?

有没有办法将cypress测试步骤执行信息添加到allure报告中?,cypress,allure,Cypress,Allure,我试图将测试步骤信息添加到allure报告中,我使用cypress并使用allure生成报告,报告正确生成,但测试用例中没有显示任何细节 我尝试在(‘任务’)上使用,但没有成功 我的插件/index.js包含: ... on('task', { allureTestStep () { const testStep = allure.createStep("Initial", () => { console.lo

我试图将测试步骤信息添加到allure报告中,我使用cypress并使用allure生成报告,报告正确生成,但测试用例中没有显示任何细节

我尝试在(‘任务’)上使用,但没有成功

我的插件/index.js包含:

...
    on('task', {
        allureTestStep () {
            const testStep = allure.createStep("Initial", () => {
                console.log("First Test")
            });
            testStep()
            return null
        }
    })
...
我称之为:

cy.task('allureTestStep')
在我的测试中

没有登录控制台只有两个错误:

allure-js-commons: Unexpected startStep() of initial. There is no parent step
First Test
allure-js-commons: Unexpected endStep(). There are no any steps running
报告中未显示任何内容(无错误,无步骤详细信息)

欢迎任何帮助:)