Javascript Testcafe和诱惑记者

Javascript Testcafe和诱惑记者,javascript,automated-tests,e2e-testing,allure,testcafe,Javascript,Automated Tests,E2e Testing,Allure,Testcafe,我试着利用记者在网上找到的魅力 我创建了跑步者: const createTestCafe = require('testcafe'); let testcafe = null; createTestCafe('localhost', 1337, 1338) .then(tc => { testcafe = tc; const runner = testcafe.createRunner(); retur

我试着利用记者在网上找到的魅力

我创建了跑步者:

const createTestCafe = require('testcafe');
let testcafe         = null;

createTestCafe('localhost', 1337, 1338)
    .then(tc => {
        testcafe     = tc;
        const runner = testcafe.createRunner();

        return runner
            .src(['tests/fixture1.js', 'tests/ingo1.js'])
            .browsers(['chrome'])
            .reporter('allure')
            .run();
    })
    .then(failedCount => {
        console.log('Tests failed: ' + failedCount);
        testcafe.close();
    });
当开始脚本时,我收到消息“Allure reporter started”,当脚本完成时,我收到消息“Allure reporter finished”。但在我的根文件夹中,我没有收到任何诱惑报告。我还尝试使用自己的配置文件

const DOC_ALLURE_CONFIG = {
    CLEAN_REPORT_DIR: true,
    COPY_HISTORY: true,
    RESULT_DIR: '/allure/allure-results',
    REPORT_DIR: '/allure/allure-report',
    META: {
        STORY_ID: 'STORY',
        TEST_ID: 'ID',
        SEVERITY: 'SEVERITY',
        TEST_RUN: 'TEST_RUN'
    },
    STORY_LABEL: 'JIRA Story Link',
    STORY_URL: 'https://jira.example.ca/browse/{{ID}}',
    TEST_LABEL: 'JIRA Test Link',
    TEST_URL: 'https://jira.example.ca/secure/Tests.jspa#/testCase/{{ID}}',
    labels: {
        screenshotLabel: 'Screenshot',
        browserLabel: 'Browser',
        userAgentLabel: 'User Agent',
        allureStartMessage: 'Allure Ingo reporter started...',
        allureClosedMessage: 'Allure Ingo reporter closed...'
    }
};

module.exports = DOC_ALLURE_CONFIG;
这也不起作用。不显示自定义消息,仅显示默认消息。 看起来诱惑插件忽略了一切,并且没有很好地识别我的节点模块

在项目根目录中获取诱惑报告时,我错过了什么设置


(还尝试通过npm链接…

TestCafe不正式支持
TestCafe reporter allure
reporter,因此我们只能建议您询问其作者或allure社区有关此问题的信息。

TestCafe不正式支持
TestCafe reporter allure
reporter,因此,我们只能建议您向其作者或allure社区询问此问题。

testcafe allure reporter文件夹存储与此模块安装路径相关的生成报告。因此,尝试将testcafe allure reporter本地安装到项目中并执行脚本。之后,allure/allure results文件夹应显示在项目根目录中。

testcafe allure reporter文件夹存储相对于安装此模块的路径生成的报告。因此,尝试将testcafe allure reporter本地安装到项目中并执行脚本。之后,allure/allure results文件夹应显示在您的项目根目录中。

我使用了这个较新的包,它是开箱即用的:

我使用了这个较新的包,它是开箱即用的: