1. Configuring The Runner
Note: For this tutorial we will be using My First Testing App.
Before we can run a test script, we must first define our AppDriver configuration file:
config/local.config.js
const path = require("path");
const simulators = {
iPhoneX: {
bundleId: "org.reactjs.native.example.MyFirstTestingApp",
app: path.join(__dirname, "app", "MyFirstTestingApp.zip"),
platformName: "iOS",
platformVersion: "12.1",
deviceName: "iPhone X",
automationName: "XCUITest",
wdaLocalPort: 8100,
waitForQuiescence: false,
noReset: true
}
};
module.exports = {
specs: [
"../tests/hello-world.e2e.js"
],
devices: [
{ capabilities: simulators.iPhoneX }
]
};