Skip to content

Commit 912d92e

Browse files
committed
Merge pull request nwjs#946 from kingFighter/docs
update README.md about local server
2 parents 79afd02 + 8eb45b4 commit 912d92e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* node-webkit didn't ship third party node modules required for testing, you
44
need to install them.
55
* We use `nw-gyp` to build native modules.
6-
* We have test case that needs a http server e.g. apache. Please open port 80 and 8080 then put `tests/automatic_tests/node-remote/node_remote_test.html`to the http server document root.
6+
* We have test cases that need a http server. And we have set up a simple nodejs server with port 8123 and 8124 opened. The http server document root is `tests/server`. You can add ports in `tests/server/server.js`
77

88
So please run this:
99

@@ -117,9 +117,9 @@ $ /path-to-node-webkit src/content/nw/tests --grep long-to-run -i
117117
````
118118

119119
## Tips
120-
in test case `node-remote` we need to open a http server, e.g. apache
121-
to be the remote site. We use port 80, 8080 for test, and please put `node_remote_test.html`
122-
to the http server document root.
120+
in test case like `node-remote`, we need to open a http server
121+
to be the remote site. It is automatically opened when we run tests. We use port 8123, 8124 for test.
122+
The http server document root is `tests/server`. We have put some resources there e.g. `node_remote_test.html`.
123123

124124
## Native Modules
125125
When there is a new nw release, We hope you to rebuild native modules.

0 commit comments

Comments
 (0)