- Go root folder of weex Project
- execute
npm installto install all dependencies - execute
./test/serve.shto build and serve test bundles. - execute
./test/run.sh [platform]to perform weex sdk tests,platformcould beall(default),android,ios,h5.
execute 'bash run.sh [platform] [path]' will run test against [path] folder as long as it has same structure as SDK's 'test' folder.
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.
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.