mirror of
https://github.com/appium/appium.git
synced 2026-04-27 13:59:33 -05:00
42 lines
2.3 KiB
Markdown
42 lines
2.3 KiB
Markdown
Appium grunt commands
|
|
=============
|
|
|
|
[Grunt](http://gruntjs.com) is like make for Node.js! We use it to automate all
|
|
kinds of appium dev tasks. Here's what you can do:
|
|
|
|
|Task|Description|
|
|
|----|-----------|
|
|
|grunt appium|Start an appium server|
|
|
|grunt downloadApp|Download the UICatalog app from Apple|
|
|
|grunt lint|Run JSLint|
|
|
|grunt test|Run all the tests|
|
|
|grunt functional|Run the entire functional test suite|
|
|
|grunt ios|Run the functional test suite for ios|
|
|
|grunt android|Run the functional test suite for android|
|
|
|grunt selendroid|Run the functional test suite for selendroid|
|
|
|grunt firefoxos|Run the functional test suite for firefoxos|
|
|
|grunt unit|Run the unit tests|
|
|
|grunt buildApp:<AppName>:<SDK>|Build an iOS app for the iPhone Simulator. Expects there to be a .app at `sample-code/apps/<AppName>/build/Release-iphonesimulator/<AppName>.app`. Default SDK is 'iphonesimulator6.0'|
|
|
|grunt signApp:<certName>|Signs the test app with an absolute path to an iOS dev certificate|
|
|
|grunt authorize|Authorize your simulator to run without prompting|
|
|
|grunt log|Tail appium.log (useful when running tests)|
|
|
|grunt configAndroidBootstrap|Configure the android bootstrap jar so it can be built with ant|
|
|
|grunt buildAndroidBootstrap|Build the android bootstrap jar with ant|
|
|
|grunt buildSelendroidServer|Build the selendroid server|
|
|
|grunt configAndroidApp:<AppName>|Configure an android test app so it can be built with ant. Expects an android project at `sample-code/apps/<AppName>`|
|
|
|grunt buildAndroidApp:<AppName>|Build an android app using ant. Expects the app to be at `sample-code/apps/<AppName>`|
|
|
|grunt installAndroidApp:<AppName>|Installs an android app to the currently running emulator or device|
|
|
|grunt docs|Generate docs|
|
|
|grunt generateAppiumIo|Take Appium's README.md and turn it into HTML for getting-started.html of appium.io|
|
|
|grunt setConfigVer:<device>|Say that <device> is configured for the version of Appium listed in package.json|
|
|
|
|
Miscellaneous notes
|
|
--------
|
|
|
|
By default, `grunt buildApp` builds apps using the iPhone 6.1 simulator SDK.
|
|
You can overwrite the simulator by passing another SDK to grunt (to figure out
|
|
which SDKs you have available, try `xcodebuild -showsdks`:
|
|
|
|
> grunt buildApp:UICatalog:iphonesimulator6.0
|
|
|