"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require('path');
const debug = require('debug')('run');
require("jest");
const index_1 = require("../index");
const test_help_js_1 = require("@weex-cli/utils/lib/test/test-help.js");
async function android() {
    debug('Test run android');
    const testHelp = new test_help_js_1.default(path.join(__dirname, '../../'));
    const androidRunner = new index_1.AndroidRunner({
        jsBundleEntry: testHelp.getTestConfigByKey('jsBundleEntry'),
        projectPath: testHelp.getTestConfigByKey('android.projectPath'),
        deviceId: testHelp.getTestConfigByKey('android.deviceId'),
        applicationId: testHelp.getTestConfigByKey('android.applicationId'),
        jsBundleFolderPath: testHelp.getTestConfigByKey('jsBundleFolderPath'),
    });
    await androidRunner.run();
}
android().catch(e => {
    console.error('Test run android ERROR: ', e);
});
