tree: 957fa15e87d5d47985453f4011f26284cdf02931 [path history] [tgz]
  1. js-framework/
  2. pages/
  3. screenshot/
  4. scripts/
  5. .gitignore
  6. ci-funcs.sh
  7. README.md
  8. run.sh
  9. serve.sh
  10. update-cli.sh
test/README.md

Weex Cross-platform Test

Setup

Setup Macaca

Run

Test Build-in Cases

  1. Go root folder of weex Project
  2. execute npm install to install all dependencies
  3. execute ./test/serve.sh to build and serve test bundles.
  4. execute ./test/run.sh [platform] to perform weex sdk tests, platform could be all(default),android,ios,h5.

Test Separate Project **todo##

execute ‘bash run.sh [platform] [path]’ will run test against [path] folder as long as it has same structure as SDK's ‘test’ folder.

Develop

These tests target covering all build-in common components' and modules' functions. Including common UI patterns used by real-world application. Such as a list-based page, a form with all kind of input, etc.

Folders

  • scripts:
    Test scripts. Test command will execute each script under this folder.
  • pages:
    Weex page scripts. These pages will be builded before running test cases. Actually,all the tests is running in these pages.