-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwdio.ios.app.js
executable file
·34 lines (31 loc) · 1.1 KB
/
wdio.ios.app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* WebdriverIO config file to run tests on native mobile apps.
* Config file helps us configure all the settings and setup environments
* to run our tests.
*/
require("chai/register-assert");
const merge = require("deepmerge");
const wdioMobileConf = require("./wdio.shared.conf.js");
const customCapabilities = merge(wdioMobileConf.mobCapabilities, {
platformName: "iOS",
app: './apps/wdioNativeDemoApp.app',
waitforTimeout: 300,
automationName: "XCUITest",
noReset: true,
locationServicesEnabled: true,
locationServicesAuthorized: true,
recordLogs: false,
recordScreenshots: false,
});
const capabilities = [];
capabilities.push(customCapabilities);
const featurePath = `./test/specs/${process.env.FEATUREFILE ? process.env.FEATUREFILE : "**"}`;
const specs = wdioMobileConf.featureFilesWithTags(featurePath, process.env.TAGS);
exports.config = merge(wdioMobileConf.config, {
specs: specs,
path: "/wd/hub",
capabilities: capabilities,
onPrepare: async function () {
console.log("<<< NATIVE APP TESTS STARTED >>>");
},
});