Skip to content

Commit

Permalink
Merge pull request appium#3319 from moizjv/documentation
Browse files Browse the repository at this point in the history
Fixing reset.bat and adding additional documentation running tests on windows
  • Loading branch information
jlipps committed Aug 6, 2014
2 parents 034e57e + fc67a84 commit ba1bb4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ Mocha, for example:

Or individual tests (e.g., a test with the word "alert" in the name):

DEVICE=ios6 mocha -t 60000 -R spec --grep "alert" test/functional/ios/apidemos
DEVICE=ios6 mocha -t 60000 -R spec --grep "alert" test/functional/ios/uicatalog

For windows you have to use `set DEVICE=android` in cmd to run above tests, for example:

set DEVICE=android
mocha -t 60000 -R spec test/functional/android/apidemos/alerts-specs.js

NOTE: For Android, you will need an emulator/device with screen size of 4.0"
(480x800). Some tests might fail on a different screen size.
Expand Down
3 changes: 3 additions & 0 deletions grunt-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ var buildAndroidProj = function (grunt, projPath, target, cb) {
} else {
if (stdout) {
var cmd = stdout.split('\r\n')[0].trim();
if (isWindows && cmdName === 'ant') {
cmd = cmd + '.bat';
}
grunt.log.write("Using " + cmdName + " found at " + cmd + "\n");
var proc = spawn(cmd, [target], {cwd: projPath});
proc.on("error", function () {
Expand Down

0 comments on commit ba1bb4e

Please sign in to comment.