You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2017/09/07 07:42:53 UTC

spec commit: CB-12173 - Add docs to run local filetransfer server for mobilespec

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 6a183189c -> c29f54f7f


CB-12173 - Add docs to run local filetransfer server for mobilespec


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/c29f54f7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/c29f54f7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/c29f54f7

Branch: refs/heads/master
Commit: c29f54f7f937c71dfa35ee7b922bc3e1733e17e3
Parents: 6a18318
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Thu Sep 7 15:42:48 2017 +0800
Committer: Shazron Abdullah <sh...@gmail.com>
Committed: Thu Sep 7 15:42:48 2017 +0800

----------------------------------------------------------------------
 README.md | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/c29f54f7/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index fdb4339..f1f0de9 100644
--- a/README.md
+++ b/README.md
@@ -50,3 +50,31 @@ For reference purposes, the document
 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
+```


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org