add some logging to make it easier to follow ios startup flow

This commit is contained in:
Jonathan Lipps
2014-03-12 14:44:48 -07:00
parent b2a782a899
commit 775fb8fc8b
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -387,6 +387,7 @@ IOS.prototype.onUnexpectedInstrumentsExit = function (code, traceDir) {
};
IOS.prototype.setXcodeFolder = function (cb) {
logger.info("Setting Xcode folder");
helpers.getXcodeFolder(function (err, xcodeFolder) {
if (err) {
logger.error("Could not determine Xcode folder");
@@ -397,6 +398,7 @@ IOS.prototype.setXcodeFolder = function (cb) {
};
IOS.prototype.setXcodeVersion = function (cb) {
logger.info("Setting Xcode version");
helpers.getXcodeVersion(function (err, versionNumber) {
if (err) {
logger.error("Could not determine Xcode version");
@@ -412,6 +414,7 @@ IOS.prototype.setXcodeVersion = function (cb) {
};
IOS.prototype.setiOSSDKVersion = function (cb) {
logger.info("Setting iOS SDK Version");
helpers.getiOSSDKVersion(function (err, versionNumber) {
if (err) {
logger.error("Could not determine iOS SDK version");
@@ -464,7 +467,7 @@ IOS.prototype.setLocale = function (cb) {
}
}.bind(this));
} else {
msg = "Could not set locale information because the ios-sim-local was not found at " + iosSimLocalePath;
msg = "Could not set locale information because the ios-sim-locale was not found at " + iosSimLocalePath;
logger.error(msg);
cb(new Error(msg));
}
@@ -612,6 +615,7 @@ IOS.prototype.setSafariPrefs = function () {
};
IOS.prototype.detectTraceTemplate = function (cb) {
logger.info("Detecting automation tracetemplate");
var msg;
if (!this.args.automationTraceTemplatePath) {
helpers.getXcodeFolder(function (err, xcodeFolderPath) {
@@ -661,6 +665,7 @@ IOS.prototype.detectUdid = function (cb) {
cb(new Error("Timed out trying to detect udid."));
});
} else {
logger.info("Not auto-detecting udid, running on sim");
cb();
}
};
+2
View File
@@ -8,3 +8,5 @@ Here's a list of things that aren't tested in this suite:
* node install in appium.app (for appium-instruments)
* android with --udid (even if emulator)
* {launch: false} caps
* setting locale
* --avd / avdName