2***@qq.com
2***@qq.com
  • 发布:2024-07-02 22:16
  • 更新:2024-07-02 22:16
  • 阅读:15

#插件讨论# 【 HBuilderX uni-app自动化测试 - DCloud-HBuilderX团队 】配置jest.config.js后依旧不能使用自定义基座进行测试

分类:uni-app

android节点下的appid,package,executablePath我都配置了,但是依旧启动了默认基座


module.exports = {  
    testTimeout: 10000,  
    reporters: [  
        'default'  
    ],  
    watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],  
    moduleFileExtensions: ['js', 'json'],  
    rootDir: __dirname,  
    testMatch: ["<rootDir>/pages/**/*test.[jt]s?(x)", "<rootDir>/*pack/**/*test.[jt]s?(x)"],  
    testPathIgnorePatterns: ['/node_modules/'],  
    testEnvironmentOptions: {  
        compile: true,  
        "app-plus": { // 需要安装 HBuilderX  
            android: {  
                appid: "__UNI__A4BB50E", //自定义基座测试需配置manifest.json中的appid  
                package: "io.biquge", //自定义基座测试需配置Android包名  
                executablePath: "E:/book/unpackage/debug/android_debug.apk" // apk 目录或自定义调试基座包路径  
            },  
            ios: {  
                // uuid 必须配置,目前仅支持模拟器,可以(xcrun simctl list)查看要使用的模拟器 uuid  
                id: "",  
                executablePath: "HBuilderX/plugins/launcher/base/Pandora_simulator.app" // ipa 目录  
            }  
        }  

    }  
}
2024-07-02 22:16 负责人:无 分享
已邀请:

要回复问题请先登录注册