UNPKG

webdriverio-automation

Version:

WebdriverIO-Automation android ios project

79 lines (72 loc) 2.08 kB
exports.config = { // // ==================== // Runner Configuration // ==================== // // WebdriverIO allows it to run your tests in arbitrary locations (e.g. locally or // on a remote machine). runner: 'local', host: 'hub.browserstack.com', // // =================== // Test Configurations // =================== // Define all options that are relevant for the WebdriverIO instance here // logLevel: 'info', // If you only want to run your tests until a specific amount of tests have failed use // bail (default is 0 - don't bail, run all tests). bail: 0, // Default timeout for all waitFor* commands. waitforTimeout: 10000, // // Default timeout in milliseconds for request // if browser driver or grid doesn't send response connectionRetryTimeout: 60000, // // Default request retries count connectionRetryCount: 3, // // Test runner services services: [ ['browserstack', { browserstackLocal: false }], 'appium' ], appium: { command: 'appium', args: {}, }, // Framework you want to run your specs with. // The following are supported: Mocha, Jasmine, and webdriverio framework: 'mocha', mochaOpts: { ui: 'bdd', require: 'ts-node/register', compilers: [ // optional 'tsconfig-paths/register' ], timeout: 600000 }, // Test reporter for stdout. reporters: [ 'spec', [ 'allure', { outputDir: './reports/allure/allure-results' } ], [ 'json', { outputDir: './reports/json/json-results' } ] ], afterTest: function (test) { console.log("Quiting the App..."); browser.closeApp(); console.log("Reloading the session..."); browser.reloadSession(); }, }