You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/04/11 12:13:14 UTC

incubator-weex git commit: * [test] use '@ignore-' in test case description to ignore in run script

Repository: incubator-weex
Updated Branches:
  refs/heads/0.12-dev bd306754e -> 953c6071b


* [test] use '@ignore-' in test case description to ignore in run script


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/953c6071
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/953c6071
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/953c6071

Branch: refs/heads/0.12-dev
Commit: 953c6071b4f21c25f9649aa32d026ab6ae6bd0d9
Parents: bd30675
Author: sospartan <so...@apache.org>
Authored: Tue Apr 11 20:13:03 2017 +0800
Committer: sospartan <so...@apache.org>
Committed: Tue Apr 11 20:13:03 2017 +0800

----------------------------------------------------------------------
 test/run.sh                              | 9 ++++++---
 test/scripts/components/recycler.test.js | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/953c6071/test/run.sh
----------------------------------------------------------------------
diff --git a/test/run.sh b/test/run.sh
index b934a66..0de22eb 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -11,7 +11,8 @@ function buildAndroid {
 }
 function runAndroid {
     buildAndroid
-    platform=android macaca run -d $1
+    macaca server &
+    platform=android ./node_modules/mocha/bin/mocha  $1 -f '@ignore-android' -i --recursive --bail
 }
 
 function buildiOS {
@@ -40,12 +41,14 @@ function runiOS {
     echo 'killAll Simulator......'
     killAll Simulator || echo 'killall failed'
     # ps -ef
-    platform=ios macaca run -d $1
+    macaca server &
+    platform=ios ./node_modules/mocha/bin/mocha  $1 -f '@ignore-ios' -i --recursive --bail
 }
 
 function runWeb {
     echo 'run web'
-    browser=chrome macaca run -d $1
+    macaca server &
+    browser=chrome ./node_modules/mocha/bin/mocha  $1 -f '@ignore-web' -i --recursive --bail
 }
 
 platform_android='android'

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/953c6071/test/scripts/components/recycler.test.js
----------------------------------------------------------------------
diff --git a/test/scripts/components/recycler.test.js b/test/scripts/components/recycler.test.js
index 9850945..725118b 100644
--- a/test/scripts/components/recycler.test.js
+++ b/test/scripts/components/recycler.test.js
@@ -32,7 +32,7 @@ const isApproximate = (x, y) =>  {
 //   return;
 // }
 
-describe('recycler', function () {
+describe('recycler @ignore-android', function () {
   this.timeout(util.getTimeoutMills())
   const driver = util.createDriver(wd)