[ https://issues.apache.org/jira/browse/CB-6581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990391#comment-13990391
]
Shazron Abdullah commented on CB-6581:
--------------------------------------
Great idea Andrew, but for now before that gets going I probably will go with a script in
the interim.
Simulator:
{code}
xcodebuild test -scheme CordovaLibApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone
Retina (4-inch)' CONFIGURATION_BUILD_DIR="$PROJECT_PATH/build/emulator"
{code}
Device:
{code}
xcodebuild test -scheme CordovaLibApp -sdk iphoneos -destination "platform=iOS,id=device_id_here"
CONFIGURATION_BUILD_DIR="$PROJECT_PATH/build/device"
{code}
To grab the device id, you can do:
{code}
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p' | grep
"Serial Number:" | awk -F ": " '{print $2}'
{code}
> Write script to run CordovaLibTests from the command line
> ---------------------------------------------------------
>
> Key: CB-6581
> URL: https://issues.apache.org/jira/browse/CB-6581
> Project: Apache Cordova
> Issue Type: Improvement
> Components: iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
>
> This can potentially be run when cordova-ios is installed using npm install.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
|