Skip to content

Commit

Permalink
feat: add result bundle arguments (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Oct 24, 2020
1 parent 9bf13b9 commit 85464ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/webdriveragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class WebDriverAgent {
derivedDataPath: args.derivedDataPath,
mjpegServerPort: this.mjpegServerPort,
allowProvisioningDeviceRegistration: args.allowProvisioningDeviceRegistration,
resultBundlePath: args.resultBundlePath,
resultBundleVersion: args.resultBundleVersion,
});
}

Expand Down
11 changes: 11 additions & 0 deletions lib/xcodebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class XcodeBuild {
this.prebuildDelay = _.isNumber(args.prebuildDelay) ? args.prebuildDelay : PREBUILD_DELAY;

this.allowProvisioningDeviceRegistration = args.allowProvisioningDeviceRegistration;

this.resultBundlePath = args.resultBundlePath;
this.resultBundleVersion = args.resultBundleVersion;
}

async init (noSessionProxy) {
Expand Down Expand Up @@ -190,6 +193,14 @@ class XcodeBuild {
args.push('-allowProvisioningUpdates', '-allowProvisioningDeviceRegistration');
}

if (this.resultBundlePath) {
args.push('-resultBundlePath', this.resultBundlePath);
}

if (this.resultBundleVersion) {
args.push('-resultBundleVersion', this.resultBundleVersion);
}

if (this.useXctestrunFile) {
args.push('-xctestrun', this.xctestrunFilePath);
} else {
Expand Down

0 comments on commit 85464ae

Please sign in to comment.