createmobilespec/package.json autoformatted by npm
1 file changed
tree: 6a68dc1b71004ad6d9d886dede1215286392a40a
  1. .github/
  2. cordova-plugin-echo/
  3. cordova-plugin-mobilespec-tests/
  4. cordova-plugin-thirdparty-tests/
  5. cordova-plugin-whitelist/
  6. createmobilespec/
  7. tools/
  8. www/
  9. .gitignore
  10. .ratignore
  11. AndroidBridgePerformance_300.pdf
  12. config.xml
  13. CONTRIBUTING.md
  14. LICENSE
  15. NOTICE
  16. README.md
  17. 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