From df8c5f41caee48de83d1566447945bba779e4d2e Mon Sep 17 00:00:00 2001 From: sebv Date: Tue, 13 May 2014 12:07:08 +0800 Subject: [PATCH 1/2] isolated gappium tests --- bin/test.sh | 5 +++-- .../{common/gappium-specs.js => gappium/basic-specs.js} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename test/functional/{common/gappium-specs.js => gappium/basic-specs.js} (100%) diff --git a/bin/test.sh b/bin/test.sh index 036277f0d..ef61cab67 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -59,7 +59,8 @@ run_ios_tests() { echo DEVICE=$2 time $appium_mocha -g $3 -i \ test/functional/common \ - test/functional/ios + test/functional/ios \ + test/functional/gappium } if $ios6_only || $ios_only || $all_tests; then @@ -101,5 +102,5 @@ if $selendroid_only || $all_tests; then echo "---------------------" DEVICE=selendroid time $appium_mocha -g '@skip-selendroid-all' -i \ test/functional/selendroid \ - test/functional/common/gappium-specs.js + test/functional/gappium fi diff --git a/test/functional/common/gappium-specs.js b/test/functional/gappium/basic-specs.js similarity index 100% rename from test/functional/common/gappium-specs.js rename to test/functional/gappium/basic-specs.js From 7ce9e6d0a7379913415d22aee32755433462c743 Mon Sep 17 00:00:00 2001 From: sebv Date: Tue, 13 May 2014 12:19:27 +0800 Subject: [PATCH 2/2] adding functionnal/common to ci --- ci/script.sh | 3 ++- test/functional/common/jsonwp-specs.js | 4 +++- test/functional/common/prelaunch-specs.js | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index c5ec28b50..00e2d9c84 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -13,7 +13,8 @@ elif [[ $CI_CONFIG == 'build_ios' ]]; then ./reset.sh --hardcore --no-npmlink --dev --ios --verbose if [[ $TRAVIS_SECURE_ENV_VARS == true ]]; then ./ci/upload_build_to_sauce.sh - GLOB_PATTERNS='test/functional/ios/**/*-specs.js' + GLOB_PATTERNS='test/functional/common/**/*-specs.js' + GLOB_PATTERNS+=',test/functional/ios/**/*-specs.js' node ci/tools/testfiles-tool.js split "${GLOB_PATTERNS}" > ci/test-split.json BRANCH_CAT=ios ./ci/git-push.sh fi diff --git a/test/functional/common/jsonwp-specs.js b/test/functional/common/jsonwp-specs.js index 49114aa8e..f46ffa78e 100644 --- a/test/functional/common/jsonwp-specs.js +++ b/test/functional/common/jsonwp-specs.js @@ -5,7 +5,9 @@ var chai = require('chai') , serverHub = serverUrl + '/wd/hub/session' , request = require('request'); -describe("appium - jsonwp -", function () { +describe("common - jsonwp @skip-ci", function () { + // TODO: This cannot be tested using Sauce. It need to be run within a Travis + // instance. describe('to a non-existent url', function () { it('should get 404 with text/plain body', function (done) { request.get(serverUrl + '/a/bad/path', function (err, res, body) { diff --git a/test/functional/common/prelaunch-specs.js b/test/functional/common/prelaunch-specs.js index d14950929..090a98cba 100644 --- a/test/functional/common/prelaunch-specs.js +++ b/test/functional/common/prelaunch-specs.js @@ -46,7 +46,9 @@ var waitForLaunch = function (app, extraArgs, done) { return proc; }; -describe("appium - prelaunch -", function () { +describe("common - prelaunch @skip-ci", function () { + // TODO: test helpers need to be modified to cope prelaunch on sauce. + // leaving it out for now. this.timeout(env.MOCHA_INIT_TIMEOUT); describe('ios @skip-android-all', function () { var proc;