有没有办法将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
报告中未显示任何内容(无错误,无步骤详细信息)

欢迎任何帮助:)