Sapui5 为karma runner设置静态路径

Sapui5 为karma runner设置静态路径,sapui5,karma-runner,ui5-tooling,karma-qunit,Sapui5,Karma Runner,Ui5 Tooling,Karma Qunit,我对karma测试是新手,但我可以准备我的OpenUI5应用程序进行测试。我对测试的工作目录有问题,因为对于我的测试,我需要使用预填充的sqlite3数据库。为了进行测试,我使用带有参数'--user data dir=“C:\tmp”--profile directory=“karma”'的chrome,我可以将此文件放入chrome配置文件路径中。但我不能用业力做到这一点,因为业力总是从路径中随机生成的id开始(业力-xxxxxx) 我正在尝试使用上面的chrome参数运行自定义浏览器配置,

我对karma测试是新手,但我可以准备我的OpenUI5应用程序进行测试。我对测试的工作目录有问题,因为对于我的测试,我需要使用预填充的sqlite3数据库。为了进行测试,我使用带有参数'--user data dir=“C:\tmp”--profile directory=“karma”'的chrome,我可以将此文件放入chrome配置文件路径中。但我不能用业力做到这一点,因为业力总是从路径中随机生成的id开始(业力-xxxxxx)

我正在尝试使用上面的chrome参数运行自定义浏览器配置,但它也不起作用

module.exports = function(config) {
    "use strict";

    var chromeFlags = [
        "--window-size=1280,1024",
        "--disable-web-security",
        "--allow-file-access-from-files",
        '--user-data-dir="C:\\tmp"',
        '--profile-directory="karma"'
    ];

    config.set({

        basePath: '',
        ui5: {
            type: "application",
            preload: 'async',
            animation: 'false',
            paths: {
                webapp: "www", // application
            }
        },

        frameworks: ["ui5"],

        browsers: ["CustomChrome"],

        browserConsoleLogOptions: {
            level: "error"
        },

        customLaunchers: {
            CustomChrome: {
                base: "Chrome",
                flags: chromeFlags
            },
            CustomChromeHeadless: {
                base: "ChromeHeadless",
                flags: chromeFlags
            }
        },

    });
};

使用此配置,chrome总是这样启动,因此自动测试不起作用:

我还应该做什么? 多谢各位