* [test] test reporter
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/36ddf325 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/36ddf325 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/36ddf325 Branch: refs/heads/0.16-dev Commit: 36ddf32548da28f7fb69657d9e27463d34e4eb9c Parents: a0d01c3 Author: gurisxie <279483...@qq.com> Authored: Fri Aug 11 11:38:04 2017 +0800 Committer: gurisxie <279483...@qq.com> Committed: Fri Aug 11 11:38:04 2017 +0800 ---------------------------------------------------------------------- package.json | 1 + test/run.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/36ddf325/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index 70c4015..4138a72 100644 --- a/package.json +++ b/package.json @@ -141,6 +141,7 @@ "karma-webpack": "^1.8.0", "macaca-utils": "^0.1.9", "mocha": "^2.5.3", + "mocha-simple-html-reporter": "^1.0.1", "nightwatch": "^0.9.4", "parse-diff": "^0.4.0", "phantomjs-prebuilt": "^2.1.7", http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/36ddf325/test/run.sh ---------------------------------------------------------------------- diff --git a/test/run.sh b/test/run.sh index 4c3a2c0..9926555 100755 --- a/test/run.sh +++ b/test/run.sh @@ -25,7 +25,7 @@ function runAndroid { buildAndroid startMacacaServer startWeexServer - platform=android ./node_modules/mocha/bin/mocha $1 -f '@ignore-android' -i --recursive --bail + platform=android ./node_modules/mocha/bin/mocha $1 --reporter mocha-simple-html-reporter --reporter-options output=report.html -f '@ignore-android' -i --recursive --bail } function buildiOS { @@ -58,14 +58,14 @@ function runiOS { # ps -ef startMacacaServer startWeexServer - platform=ios ./node_modules/mocha/bin/mocha $1 -f '@ignore-ios' -i --recursive --bail --verbose + platform=ios ./node_modules/mocha/bin/mocha $1 --reporter mocha-simple-html-reporter --reporter-options output=report.html -f '@ignore-ios' -i --recursive --bail --verbose } function runWeb { echo 'run web' startMacacaServer startWeexServer - browser=chrome ./node_modules/mocha/bin/mocha $1 -f '@ignore-web' -i --recursive --bail + browser=chrome ./node_modules/mocha/bin/mocha $1 --reporter mocha-simple-html-reporter --reporter-options output=report.html -f '@ignore-web' -i --recursive --bail } function killserver {