Improve createmobilespec/createmobilespec.js (#153)

- Log all executed shell commands
- Improve formatting of -h
- Fix coho repo URL
- Prefix important commands with ### for visibility
- Uncomment invalid npm link check (https://github.com/apache/cordova-lib/pull/682/files)
- Fix missing repo output
- Add TODO to code still to look at
1 file changed
tree: d8a592a4828d4c569eb6c9ac0517112248d48341
  1. .github/
  2. cordova-plugin-echo/
  3. cordova-plugin-mobilespec-tests/
  4. cordova-plugin-whitelist/
  5. createmobilespec/
  6. tools/
  7. www/
  8. .gitignore
  9. .ratignore
  10. AndroidBridgePerformance_300.pdf
  11. config.xml
  12. CONTRIBUTING.md
  13. LICENSE
  14. NOTICE
  15. README.md
  16. VERSION
README.md

Mobile Spec Suite

This project is a set of automated & manual tests that test Cordova core functionality.

To set up the project, use cordova-mobile-spec/createmobilespec/createmobilespec.js. See the README.md in that directory.

Requirements

Repositories required:

  • cordova-cli (Install pre-requisites by running npm install inside of cordova-cli).
  • cordova-js
  • All plugins.
  • Platforms to test (e.g., cordova-android, cordova-ios, cordova-blackberry, cordova-wp8, or cordova-windows).
  • cordova-mobile-spec (Install pre-requisites by running npm install inside of createmobilespec).
  • All repositories must be checked out as peers to each other.

Performance

For reference purposes, the document AndroidBridgePerformance_300.pdf in this directory outlines the Android bridge performance using cordova-mobile-spec and the manual bridge test. The tests were performed with Cordova 3.0.0.

Running a Local File-Transfer Server

The cordova-vm file-transfer server could be offline for the cordova-plugin-file-transfer tests.

The server to run is at: https://github.com/apache/cordova-labs/tree/cordova-filetransfer

And you would override this variable for this test plugin: https://github.com/apache/cordova-plugin-file-transfer/blob/9b322dec6790f6d273b8f707bc07976d778c4cf6/tests/plugin.xml#L33

## in your mobilespec test project, run...
cordova plugin rm cordova-plugin-file-transfer-tests
cordova plugin add path/to/cordova-plugin-file-transfer/tests --variable FILETRANSFER_SERVER_ADDRESS="http://yourlocal-IPAddressHere:5000"

Run the server:

git clone https://github.com/apache/cordova-labs.git
cd cordova-labs
git checkout cordova-filetransfer
node server.js

Get your local ip by running:

ifconfig