aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-05 14:31:59 -0400
committercash <cash.costello@gmail.com>2011-11-05 14:31:59 -0400
commit03604d683478ddbcf07fd280962cc6aba584701f (patch)
tree9bdad793f2e1b469074dd9cb74c7c8a651d1dc96 /js
parent0d35f463fbc4ce7d50b6c1540f3c50eb4263440e (diff)
downloadelgg-03604d683478ddbcf07fd280962cc6aba584701f.tar.gz
elgg-03604d683478ddbcf07fd280962cc6aba584701f.tar.bz2
Changed default port to a common one found in tutorials. Let me know if this is an issue. Also added intructions for running the unit tests.
Diffstat (limited to 'js')
-rw-r--r--js/tests/README24
-rw-r--r--js/tests/jsTestDriver.conf2
2 files changed, 25 insertions, 1 deletions
diff --git a/js/tests/README b/js/tests/README
new file mode 100644
index 000000000..4f86b27c6
--- /dev/null
+++ b/js/tests/README
@@ -0,0 +1,24 @@
+Elgg JavaScript Unit Tests
+--------------------------
+
+Introduction
+============
+Elgg uses js-test-driver to run its unit tests. Instructions on obtaining,
+configuring, and using it are at http://code.google.com/p/js-test-driver/. It
+supports running the test in multiple browsers and debugging using web browser
+based debuggers. Visit its wiki at the Google Code site for more information.
+
+
+Sample Usage
+============
+ 1. Put jar file in the base directory of Elgg
+ 2. Run the server: java -jar JsTestDriver-1.3.3d.jar --port 4224
+ 3. Point a web browser at http://localhost:4224
+ 4. Run the tests: java -jar JsTestDriver-1.3.3d.jar --config js/tests/jsTestDriver.conf --basePath . --tests all
+
+
+Configuration Hints
+===================
+ * The port when running the server must be the same as listed in the
+ configuration file. If that port is being used, change the configuration file.
+ * The basePath must be the base directory of Elgg. \ No newline at end of file
diff --git a/js/tests/jsTestDriver.conf b/js/tests/jsTestDriver.conf
index 1f9c0a6f7..b59697b88 100644
--- a/js/tests/jsTestDriver.conf
+++ b/js/tests/jsTestDriver.conf
@@ -1,4 +1,4 @@
-server: http://localhost:42442
+server: http://localhost:4224
load:
- vendors/jquery/jquery-1.6.2.min.js